Class MaterialPropertyBlockData_Particles
Contains a UnityEngine.MaterialPropertyBlock
instance
for the particle renderer. Used for updating the block.
Namespace: AS2.Visuals
Assembly: .dll
Syntax
public class MaterialPropertyBlockData_Particles : MaterialPropertyBlockData
Constructors
| Edit this page View SourceMaterialPropertyBlockData_Particles()
Declaration
public MaterialPropertyBlockData_Particles()
Fields
| Edit this page View SourceglobalDirToExpansionMeshMap
Declaration
private float[] globalDirToExpansionMeshMap
Field Value
Type | Description |
---|---|
float[] |
outerRingWidthPercentage
Declaration
private float outerRingWidthPercentage
Field Value
Type | Description |
---|---|
float |
outterRingWidthDefault
Declaration
private float outterRingWidthDefault
Field Value
Type | Description |
---|---|
float |
property_animationOffset
Declaration
private Vector3 property_animationOffset
Field Value
Type | Description |
---|---|
Vector3 |
property_animationStaticOffset
Declaration
private Vector3 property_animationStaticOffset
Field Value
Type | Description |
---|---|
Vector3 |
property_color
Declaration
private Color property_color
Field Value
Type | Description |
---|---|
Color |
property_expansionMesh
Declaration
private float property_expansionMesh
Field Value
Type | Description |
---|---|
float |
property_expansionPercentage
Declaration
private float property_expansionPercentage
Field Value
Type | Description |
---|---|
float |
property_expansionPercentage2
Declaration
private float property_expansionPercentage2
Field Value
Type | Description |
---|---|
float |
property_isExpanding
Declaration
private float property_isExpanding
Field Value
Type | Description |
---|---|
float |
property_width
Declaration
private float property_width
Field Value
Type | Description |
---|---|
float |
Methods
| Edit this page View SourceApplyAnimationTimestamp(float, float)
Applies the given animation timestamp data to the property block.
Declaration
public void ApplyAnimationTimestamp(float triggerTime, float animationLength)
Parameters
Type | Name | Description |
---|---|---|
float | triggerTime | The new animation trigger time. |
float | animationLength | The new animation length. |
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. |
ApplyConnectorValues(float, float, Vector3, Vector3)
Applies the given connector animation property values to the property block.
Declaration
public void ApplyConnectorValues(float animation_expansionPercentage1, float animation_expansionPercentage2, Vector3 animation_offset, Vector3 animation_staticOffset)
Parameters
Type | Name | Description |
---|---|---|
float | animation_expansionPercentage1 | Start percentage of the animation. |
float | animation_expansionPercentage2 | End percentage of the animation. |
Vector3 | animation_offset | |
Vector3 | animation_staticOffset |
ApplyOuterCircleWidthPercentage(float)
Applies the given float value to the outer circle width property.
Declaration
public void ApplyOuterCircleWidthPercentage(float p)
Parameters
Type | Name | Description |
---|---|---|
float | p | The new outer circle width percentage. |
ApplyToBlock()
Applies animation percentage and animation offset properties.
Declaration
private void ApplyToBlock()
ApplyUpdatedValues(bool, int, float, float, Vector3)
Applies the given animation parameters to the property block.
Declaration
public void ApplyUpdatedValues(bool isExpanding, int visualExpansionDir, float animation_expansionPercentage1, float animation_expansionPercentage2, Vector3 animation_offset)
Parameters
Type | Name | Description |
---|---|---|
bool | isExpanding | Whether the particle is currently expanding or contracting. |
int | visualExpansionDir | Global direction of the expansion or contraction movement. |
float | animation_expansionPercentage1 | Start percentage of the animation. |
float | animation_expansionPercentage2 | End percentage of the animation. |
Vector3 | animation_offset | Local movement direction of the animation. |
GetCurrentOuterCircleWidthPercentage()
Gets the current value of the outer circle width property.
Declaration
public float GetCurrentOuterCircleWidthPercentage()
Returns
Type | Description |
---|---|
float | The current outer circle width percentage. |
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()