Class MaterialPropertyBlockData_Circuits
Contains a MaterialPropertyBlock
instance for
the circuit system. Used for updating the block.
Namespace: AS2.Visuals
Assembly: .dll
Syntax
public class MaterialPropertyBlockData_Circuits : MaterialPropertyBlockData
Constructors
| Edit this page View SourceMaterialPropertyBlockData_Circuits()
Declaration
public MaterialPropertyBlockData_Circuits()
Fields
| Edit this page View Sourcecolor
Declaration
private Color color
Field Value
Type | Description |
---|---|
Color |
Methods
| Edit this page View SourceApplyAlphaPercentagesToBlock(float, float)
Applies the given alpha percentages to the property block.
Declaration
public void ApplyAlphaPercentagesToBlock(float alphaBeforeAnimation, float alphaAfterAnimation)
Parameters
Type | Name | Description |
---|---|---|
float | alphaBeforeAnimation | The alpha percentage before the animation. |
float | alphaAfterAnimation | The alpha percentage after the animation. |
ApplyAnimationTimestamp(float, float)
Applies the given animation timestamp to the property block.
Declaration
public void ApplyAnimationTimestamp(float triggerTime, float animationLength)
Parameters
Type | Name | Description |
---|---|---|
float | triggerTime | The time at which the animation was triggered. |
float | animationLength | The length of an animation. |
ApplyColor(Color)
Applies the given color to the property block.
Declaration
public void ApplyColor(Color color)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The new color to be applied. |
ApplyColorSecondary(Color)
Applies the given secondary color to the property block.
Declaration
public void ApplyColorSecondary(Color color)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The new secondary color to be applied. |
ApplyMovementOffset(Vector2)
Applies the given movement offset to the property block.
Declaration
public void ApplyMovementOffset(Vector2 movementOffset)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | movementOffset | The new movement offset vector. |
ApplyMovementTimestamp(float, float)
Applies the given movement timestamp to the property block.
Declaration
public void ApplyMovementTimestamp(float movementTriggerTime, float movementDuration)
Parameters
Type | Name | Description |
---|---|---|
float | movementTriggerTime | The time at which the movement has started. |
float | movementDuration | The duration of a movement. |
ApplyTexture(Texture)
Applies the given texture to the property block.
Declaration
public void ApplyTexture(Texture tex)
Parameters
Type | Name | Description |
---|---|---|
Texture | tex | The new texture to be applied. |
Init()
Initializes the property block with default values.
Declaration
protected override void Init()
Overrides
| Edit this page View SourceReset()
Resets the property block to its default values.
Declaration
public override void Reset()