Search Results for

    Show / Hide Table of Contents

    Class MaterialPropertyBlockData_Particles

    Contains a UnityEngine.MaterialPropertyBlock instance for the particle renderer. Used for updating the block.

    Inheritance
    object
    MaterialPropertyBlockData
    MaterialPropertyBlockData_Particles
    Namespace: AS2.Visuals
    Assembly: .dll
    Syntax
    public class MaterialPropertyBlockData_Particles : MaterialPropertyBlockData

    Constructors

    | Edit this page View Source

    MaterialPropertyBlockData_Particles()

    Declaration
    public MaterialPropertyBlockData_Particles()

    Fields

    | Edit this page View Source

    globalDirToExpansionMeshMap

    Declaration
    private float[] globalDirToExpansionMeshMap
    Field Value
    Type Description
    float[]
    | Edit this page View Source

    outerRingWidthPercentage

    Declaration
    private float outerRingWidthPercentage
    Field Value
    Type Description
    float
    | Edit this page View Source

    outterRingWidthDefault

    Declaration
    private float outterRingWidthDefault
    Field Value
    Type Description
    float
    | Edit this page View Source

    property_animationOffset

    Declaration
    private Vector3 property_animationOffset
    Field Value
    Type Description
    Vector3
    | Edit this page View Source

    property_animationStaticOffset

    Declaration
    private Vector3 property_animationStaticOffset
    Field Value
    Type Description
    Vector3
    | Edit this page View Source

    property_color

    Declaration
    private Color property_color
    Field Value
    Type Description
    Color
    | Edit this page View Source

    property_expansionMesh

    Declaration
    private float property_expansionMesh
    Field Value
    Type Description
    float
    | Edit this page View Source

    property_expansionPercentage

    Declaration
    private float property_expansionPercentage
    Field Value
    Type Description
    float
    | Edit this page View Source

    property_expansionPercentage2

    Declaration
    private float property_expansionPercentage2
    Field Value
    Type Description
    float
    | Edit this page View Source

    property_isExpanding

    Declaration
    private float property_isExpanding
    Field Value
    Type Description
    float
    | Edit this page View Source

    property_width

    Declaration
    private float property_width
    Field Value
    Type Description
    float

    Methods

    | Edit this page View Source

    ApplyAnimationTimestamp(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.

    | Edit this page View Source

    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.

    | Edit this page View Source

    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
    | Edit this page View Source

    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.

    | Edit this page View Source

    ApplyToBlock()

    Applies animation percentage and animation offset properties.

    Declaration
    private void ApplyToBlock()
    | Edit this page View Source

    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.

    | Edit this page View Source

    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.

    | Edit this page View Source

    Init()

    Initializes the property block with default values.

    Declaration
    protected override void Init()
    Overrides
    MaterialPropertyBlockData.Init()
    | Edit this page View Source

    Reset()

    Resets the property block to its default values.

    Declaration
    public override void Reset()
    Overrides
    MaterialPropertyBlockData.Reset()
    • Edit this page
    • View Source
    In this article
    Back to top AmoebotSim 2.0 Documentation v1.11
    Copyright © 2025 AmoebotSim 2.0 Authors
    Generated by DocFX