![]() |
Pixelpart 1.8.2
Unity Plugin
|
Vector4
property animated with keyframes and affected by effect inputs.
More...
Public Member Functions | |
PixelpartAnimatedPropertyFloat4 (IntPtr internalPropertyPtr) | |
Construct PixelpartAnimatedPropertyFloat4. | |
Vector4 | At (float position) |
Return the (interpolated) value of the animation property at time position . | |
void | AddKeyframe (float position, Vector4 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, Vector4 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. | |
Vector4 | 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 . | |
void | EnableAdaptiveCache () |
Enable an adaptive cache, which resizes itself automatically if the number of keyframes increases or decreases a lot. | |
void | EnableFixedCache (int size) |
Enable a fixed cache with the given size, which only stores up to size different value. | |
Vector4 | Get (float position) |
Return the (interpolated) value of the animation property at time position . Deprecated, use At. | |
void | AddPoint (float position, Vector4 value) |
Add a keyframe at time position with value value . Deprecated, use AddKeyframe. | |
void | RemovePoint (int index) |
Remove the keyframe with the given index from the animation. Deprecated, use RemoveKeyframe. | |
void | SetPoint (int index, Vector4 value) |
Change the value of the keyframe with the given index. Deprecated, use SetKeyframeValue. | |
void | SetPointPosition (int index, float position) |
Move the time of the keyframe with the given index to position . Deprecated, use SetKeyframePosition. | |
void | Clear () |
Remove all keyframes from the animation. Deprecated, use ClearKeyframes. | |
Vector4 | GetPoint (int index) |
Return the value of the keyframe with the given index. Deprecated, use GetKeyframeValue. | |
int | GetPointIndex (float position, float epsilon) |
Return the index of the keyframe closest to time position . Deprecated, use GetKeyframeIndex. | |
Properties | |
InterpolationType | KeyframeInterpolation [get, set] |
Interpolation applied to the animation curve. | |
int | KeyframeCount [get] |
Number of keyframes. | |
InterpolationType | Interpolation [get] |
Interpolation applied to the animation curve. Deprecated, use KeyframeInterpolation. | |
int | NumPoints [get] |
Number of keyframes. Deprecated, use KeyframeCount. | |
bool | ContainsPoints [get] |
Whether the animation property contains any keyframes. Deprecated, use KeyframeCount. | |
Vector4
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.
PixelpartAnimatedPropertyFloat4 | ( | IntPtr | internalPropertyPtr | ) |
Construct PixelpartAnimatedPropertyFloat4.
internalPropertyPtr | Internal property pointer |
void AddKeyframe | ( | float | position, |
Vector4 | 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 |
void AddPoint | ( | float | position, |
Vector4 | value ) |
Add a keyframe at time position with value value . Deprecated, use AddKeyframe.
position | Time between 0 and 1 |
value | Value of the property at the given time |
Vector4 At | ( | float | position | ) |
Return the (interpolated) value of the animation property at time position .
position | Time between 0 and 1 |
void EnableFixedCache | ( | int | size | ) |
Enable a fixed cache with the given size, which only stores up to size different value.
size | Cache size |
Vector4 Get | ( | float | position | ) |
Return the (interpolated) value of the animation property at time position . Deprecated, use At.
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 |
Vector4 GetKeyframeValue | ( | int | index | ) |
Return the value of the keyframe with the given index.
index | Keyframe index |
Vector4 GetPoint | ( | int | index | ) |
Return the value of the keyframe with the given index. Deprecated, use GetKeyframeValue.
index | Keyframe index |
int GetPointIndex | ( | float | position, |
float | epsilon ) |
Return the index of the keyframe closest to time position . Deprecated, use GetKeyframeIndex.
position | Time between 0 and 1 |
epsilon | Maximum differerence in time to consider to keyframes at the same time |
void RemoveKeyframe | ( | int | index | ) |
Remove the keyframe with the given index from the animation.
index | Index to remove |
void RemovePoint | ( | int | index | ) |
Remove the keyframe with the given index from the animation. Deprecated, use RemoveKeyframe.
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, |
Vector4 | value ) |
Change the value of the keyframe with the given index.
index | Keyframe index |
value | New value |
void SetPoint | ( | int | index, |
Vector4 | value ) |
Change the value of the keyframe with the given index. Deprecated, use SetKeyframeValue.
index | Keyframe index |
value | New value |
void SetPointPosition | ( | int | index, |
float | position ) |
Move the time of the keyframe with the given index to position . Deprecated, use SetKeyframePosition.
index | Keyframe index |
position | New time between 0 and 1 |