Class IntLayerProperty
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.
Inherited Members
Namespace: Artemis.Core
Assembly: Artemis.Core.dll
Syntax
public class IntLayerProperty : LayerProperty<int>, ILayerProperty, IStorageModel, IDisposable
Methods
OnInitialize()
Called when the layer property has been initialized
Declaration
protected override void OnInitialize()
Overrides
UpdateCurrentValue(float, float)
Called every update (if keyframes are both supported and enabled) to determine the new CurrentValue based on the provided progress
Declaration
protected override void UpdateCurrentValue(float keyframeProgress, float keyframeProgressEased)
Parameters
Type | Name | Description |
---|---|---|
float | keyframeProgress | The linear current keyframe progress |
float | keyframeProgressEased | The current keyframe progress, eased with the current easing function |
Overrides
Operators
implicit operator double(IntLayerProperty)
Implicitly converts an IntLayerProperty to a double
Declaration
public static implicit operator double(IntLayerProperty p)
Parameters
Type | Name | Description |
---|---|---|
IntLayerProperty | p |
Returns
Type | Description |
---|---|
double |
implicit operator int(IntLayerProperty)
Implicitly converts an IntLayerProperty to an int
Declaration
public static implicit operator int(IntLayerProperty p)
Parameters
Type | Name | Description |
---|---|---|
IntLayerProperty | p |
Returns
Type | Description |
---|---|
int |
implicit operator float(IntLayerProperty)
Implicitly converts an IntLayerProperty to a float
Declaration
public static implicit operator float(IntLayerProperty p)
Parameters
Type | Name | Description |
---|---|---|
IntLayerProperty | p |
Returns
Type | Description |
---|---|
float |