![]() |
Pixelpart 1.9.0
Unity Plugin
|
Vector3 property animated with keyframes and affected by effect inputs.
More...
Public Member Functions | |
| PixelpartAnimatedPropertyFloat3 (IntPtr internalPropertyPtr) | |
| Construct PixelpartAnimatedPropertyFloat3. | |
| Vector3 | At (float position) |
| Return the (interpolated) value of the animation property at time position . | |
| void | AddKeyframe (float position, Vector3 value) |
| Add a keyframe at time position with value value . | |
| void | RemoveKeyframe (int index) |
| Remove the keyframe with the given index from the animation. | |
| void | SetKeyframeValue (int index, Vector3 value) |
| Change the value of the keyframe with the given index. | |
| void | SetKeyframePosition (int index, float position) |
| Move the time of the keyframe with the given index to position . | |
| void | ClearKeyframes () |
| Remove all keyframes from the animation. | |
| Vector3 | GetKeyframeValue (int index) |
| Return the value of the keyframe with the given index. | |
| int | GetKeyframeIndex (float position, float epsilon) |
| Return the index of the keyframe closest to time position . | |
Properties | |
| PixelpartInterpolationType | KeyframeInterpolation [get, set] |
| Interpolation applied to the animation curve. | |
| int | KeyframeCount [get] |
| Number of keyframes. | |
Vector3 property animated with keyframes and affected by effect inputs.
Scene objects of an effect like particle emitters and force fields have properties that change over time and are affected by effect inputs. Such properties are represented by one of the PixelpartAnimatedProperty classes, depending on the type of the property.
| PixelpartAnimatedPropertyFloat3 | ( | IntPtr | internalPropertyPtr | ) |
Construct PixelpartAnimatedPropertyFloat3.
| internalPropertyPtr | Internal property pointer |
| void AddKeyframe | ( | float | position, |
| Vector3 | value ) |
Add a keyframe at time position with value value .
| position | Time between 0 and 1 |
| value | Value of the property at the given time |
| Vector3 At | ( | float | position | ) |
Return the (interpolated) value of the animation property at time position .
| position | Time between 0 and 1 |
| int GetKeyframeIndex | ( | float | position, |
| float | epsilon ) |
Return the index of the keyframe closest to time position .
| position | Time between 0 and 1 |
| epsilon | Maximum differerence in time to consider to keyframes at the same time |
| Vector3 GetKeyframeValue | ( | int | index | ) |
Return the value of the keyframe with the given index.
| index | Keyframe index |
| void RemoveKeyframe | ( | int | index | ) |
Remove the keyframe with the given index from the animation.
| index | Index to remove |
| void SetKeyframePosition | ( | int | index, |
| float | position ) |
Move the time of the keyframe with the given index to position .
| index | Keyframe index |
| position | New time between 0 and 1 |
| void SetKeyframeValue | ( | int | index, |
| Vector3 | value ) |
Change the value of the keyframe with the given index.
| index | Keyframe index |
| value | New value |