ScaleTransitioner Class

public sealed class ScaleTransitioner : TransformTransitioner

A Cell Visual Transition Controller that manipulates the scale of transforms to carry out transitions.

Properties

Name Type Description
LODTransitionToInvisible Action<float, Transform, Vector3, int>

Returns an Action that performs an LOD transition of a transform from visible to invisible.

LODTransitionToVisible Action<float, Transform, Vector3, int>

Returns an Action that performs an LOD transition of a transform from invisible to visible.

TransitionToInvisible Action<float, Transform, Vector3, int>

Returns an Action that performs a non LOD transition of a transform from visible to invisible.

TransitionToVisible Action<float, Transform, Vector3, int>

Returns an Action that performs a non LOD transition of a transform from invisible to visible.

Methods

AwakeExtended()

protected sealed override void AwakeExtended()

Used to create the TransitionToVisible and TransitionToInvisible actions.


ClearAdditionalData(int)

protected sealed override void ClearAdditionalData(int transformIndexToClear)

Clears data stored using the StoreAdditionalData methods.

Parameters

Name Type Description
transformIndexToClear int

The index of the transform whose data should be cleared.


GetVectorData(Transform)

protected sealed override Vector3 GetVectorData(Transform transform)

Returns the scale of the Transform.

Parameters

Name Type Description
transform Transform

The Transform to get the data from.

Returns

Vector3
The scale data.


MakeTransformInvisibleImmediately(Transform)

protected sealed override void MakeTransformInvisibleImmediately(Transform transform)

Immediately transitions the transform to the invisible state.

Parameters

Name Type Description
transform Transform

The Transform to transition.


MakeTransformVisibleImmediately(Transform)

protected sealed override void MakeTransformVisibleImmediately(Transform transform)

Immediately transitions the transform to the visible state.

Parameters

Name Type Description
transform Transform

The Transform to transition.


PrepForAnyUse()

protected sealed override void PrepForAnyUse()

Performs some checks and setup that is required at runtime and in the editor (when using the World Designer Tool)


StoreAdditionalData_InvisibleToVisible(Transform)

protected sealed override void StoreAdditionalData_InvisibleToVisible(Transform transform)

Stores the difference between the transforms scale when visible and scale when invisble. This data is used by the TransitionToVisible action.

Parameters

Name Type Description
transform Transform

The Transform whose data should be stored.


StoreAdditionalData_VisibleToInvisible(Transform)

protected sealed override void StoreAdditionalData_VisibleToInvisible(Transform transform)

Stores the difference between the transforms scale when visible and scale when invisble. This data is used by the TransitionToInvisible action.

Parameters

Name Type Description
transform Transform

The Transform whose data should be stored.