Class EnumLayerProperty<T>
Represents a property on a layer. Properties are saved in storage and can optionally be modified from the UI.
Note: You cannot initialize layer properties yourself. If properly placed and annotated, the Artemis core will initialize these for you.
public class EnumLayerProperty<T> : LayerProperty<T>, ILayerProperty, IStorageModel, IDisposable, IPluginFeatureDependent where T : Enum
Type Parameters
TThe type of property encapsulated in this layer property
- Inheritance
-
objectCorePropertyChangedEnumLayerProperty<T>
- Implements
- Inherited Members
Methods
UpdateCurrentValue(float, float)
Called every update (if keyframes are both supported and enabled) to determine the new CurrentValue based on the provided progress
protected override void UpdateCurrentValue(float keyframeProgress, float keyframeProgressEased)
Parameters
keyframeProgressfloatThe linear current keyframe progress
keyframeProgressEasedfloatThe current keyframe progress, eased with the current easing function
Operators
implicit operator int(EnumLayerProperty<T>)
Implicitly converts an EnumLayerProperty<T> to an int
public static implicit operator int(EnumLayerProperty<T> p)
Parameters
pEnumLayerProperty<T>
Returns
implicit operator T(EnumLayerProperty<T>)
Implicitly converts an EnumLayerProperty<T> to a T
public static implicit operator T(EnumLayerProperty<T> p)
Parameters
pEnumLayerProperty<T>
Returns
- T