public sealed class ScaleTransitioner : TransformTransitioner
A Cell Visual Transition Controller that manipulates the scale of transforms to carry out transitions.
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. |
protected sealed override void AwakeExtended()
Used to create the TransitionToVisible and TransitionToInvisible actions.
protected sealed override void ClearAdditionalData(int transformIndexToClear)
Clears data stored using the StoreAdditionalData methods.
Name | Type | Description |
---|---|---|
transformIndexToClear | int |
The index of the transform whose data should be cleared. |
protected sealed override Vector3 GetVectorData(Transform transform)
Returns the scale of the Transform.
Name | Type | Description |
---|---|---|
transform | Transform |
The Transform to get the data from. |
Vector3
The scale data.
protected sealed override void MakeTransformInvisibleImmediately(Transform transform)
Immediately transitions the transform to the invisible state.
Name | Type | Description |
---|---|---|
transform | Transform |
The Transform to transition. |
protected sealed override void MakeTransformVisibleImmediately(Transform transform)
Immediately transitions the transform to the visible state.
Name | Type | Description |
---|---|---|
transform | Transform |
The Transform to transition. |
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)
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.
Name | Type | Description |
---|---|---|
transform | Transform |
The Transform whose data should be stored. |
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.
Name | Type | Description |
---|---|---|
transform | Transform |
The Transform whose data should be stored. |