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 12:32] – [Events] _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, as long as the Animate property |
<note important> | <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 66: | Line 63: | ||
==Animate== | ==Animate== | ||
- | If enabled, the controller | + | If enabled, the controller |
- | ==Animation== | + | |
- | The animation | + | |
==Time Scale== | ==Time Scale== | ||
The duration in seconds a single animation sequence takes | The duration in seconds a single animation sequence takes | ||
+ | ==Animation== | ||
+ | The animation curve to apply. Defines how the controller is moved through time from it's initial position.\\ | ||
+ | X axis has values between 0 and 1. A value of x means a time in the animation of x * "Time Scale" | ||
+ | On the Y axis, a value of y means that the controller is moved from it's initial position by a distance of y * the absolute value of Speed. | ||
==Single Shot== | ==Single Shot== | ||
If enabled, the animation will only play once, then the controller stops | If enabled, the animation will only play once, then the controller stops | ||
Line 100: | Line 99: | ||
====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! | ||