Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
documentation:controllers [2018/01/04 12:55] – external edit 127.0.0.1 | documentation:controllers [2018/06/07 14:45] – Removed deprecated features _Aka_ | ||
---|---|---|---|
Line 25: | Line 25: | ||
Whether to use cached values when appropriate or not | Whether to use cached values when appropriate or not | ||
====Cross Position==== | ====Cross Position==== | ||
- | // | + | //VolumeController only.// This section defines the lateral starting position: |
- | + | ||
- | This section defines the lateral starting position | + | |
- | : | + | |
== Cross Range == | == Cross Range == | ||
Defines the range within the cross section the controller uses. The base point (the point ' | Defines the range within the cross section the controller uses. The base point (the point ' | ||
Line 53: | Line 50: | ||
* **AbsolutePrecise** - using calculated distance | * **AbsolutePrecise** - using calculated distance | ||
==Speed== | ==Speed== | ||
- | The speed, using the above mode, or delta (if animated) | + | The speed of the controlled object |
- | <note important> | + | |
==Clamping== | ==Clamping== | ||
- | Determines what to do when the source' | + | Determines what to do when the source' |
* **Clamp** - controller will stop | * **Clamp** - controller will stop | ||
* **Loop** - controller will start over at the opposite | * **Loop** - controller will start over at the opposite | ||
Line 62: | Line 58: | ||
==Play automatically== | ==Play automatically== | ||
When enabled, the controller will start playing after it's initialization | When enabled, the controller will start playing after it's initialization | ||
- | ==Adapt on change== | ||
- | Internally, all controllers store the position relative (TF or percentage). So if you dynamically change the length of the source (e.g. by adding Control Points to a spline), the controlled object " | ||
- | |||
- | ==Animate== | ||
- | If enabled, the controller uses the speed value as a delta that will be applied over a period of time using the below options | ||
- | ==Animation== | ||
- | The animation curve to apply. X axis reflects the duration (% of Time Scale) while Y axis reflects the delta value to set (Speed %) | ||
- | ==Time Scale== | ||
- | The duration in seconds a single animation sequence takes | ||
- | ==Single Shot== | ||
- | If enabled, the animation will only play once, then the controller stops | ||
- | ==Reset On Stop== | ||
- | If enabled, the controller will reset to it's initial position when the animation sequence ends | ||
====Orientation==== | ====Orientation==== | ||
==Orientation Mode== | ==Orientation Mode== | ||
Line 100: | Line 83: | ||
====Events==== | ====Events==== | ||
- | //(Spline Controller | + | You can react to certain events by adding a handler to the following [[https://docs.unity3d.com/ |
- | See [[.:controllers: | + | |
+ | ==OnInitialized== | ||
+ | //Available for all controllers// | ||
+ | |||
+ | Called when the controller is initialized. You usually don't need to wait for the controller to initialize before setting its properties. | ||
+ | |||
+ | ==OnControlPointReached== | ||
+ | //Available for SplineController and UITextSplineController | ||
+ | |||
+ | Called when moving over a Control Point | ||
+ | ==OnEndReached== | ||
+ | //Available for SplineController and UITextSplineController only// | ||
+ | |||
+ | Called when the end (or start) of the source spline is reached | ||
+ | ==OnSwitch== | ||
+ | //Available for SplineController and UITextSplineController only// | ||
+ | |||
+ | Called when switching between splines. | ||
+ | <note important> | ||
====Preview==== | ====Preview==== | ||
Lets you preview the movement in the editor! | Lets you preview the movement in the editor! | ||