Search Results for

    Show / Hide Table of Contents

    Class ParticleUIExtensionSmoothLerp

    Controls the particle panel extension lerping movement.

    Inheritance
    object
    ParticleUIExtensionSmoothLerp
    Namespace: AS2.UI
    Assembly: .dll
    Syntax
    public class ParticleUIExtensionSmoothLerp : MonoBehaviour

    Fields

    | Edit this page View Source

    button_expansionContraction

    Declaration
    public Button button_expansionContraction
    Field Value
    Type Description
    Button
    | Edit this page View Source

    movement_enableLerp

    Declaration
    private bool movement_enableLerp
    Field Value
    Type Description
    bool
    | Edit this page View Source

    movement_expansionPercentage

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

    movement_isExpanding

    Declaration
    private bool movement_isExpanding
    Field Value
    Type Description
    bool
    | Edit this page View Source

    movement_layoutGroup

    Declaration
    public VerticalLayoutGroup movement_layoutGroup
    Field Value
    Type Description
    VerticalLayoutGroup
    | Edit this page View Source

    movement_layoutGroupLeftPaddingContracted

    Declaration
    public float movement_layoutGroupLeftPaddingContracted
    Field Value
    Type Description
    float
    | Edit this page View Source

    movement_layoutGroupLeftPaddingExpanded

    Declaration
    public float movement_layoutGroupLeftPaddingExpanded
    Field Value
    Type Description
    float
    | Edit this page View Source

    movement_panelTransform

    Declaration
    public RectTransform movement_panelTransform
    Field Value
    Type Description
    RectTransform
    | Edit this page View Source

    movement_panelTransformWidthContracted

    Declaration
    public float movement_panelTransformWidthContracted
    Field Value
    Type Description
    float
    | Edit this page View Source

    movement_panelTransformWidthExpanded

    Declaration
    public float movement_panelTransformWidthExpanded
    Field Value
    Type Description
    float
    | Edit this page View Source

    movement_percentagePerSec

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

    movement_useLerp

    Declaration
    private bool movement_useLerp
    Field Value
    Type Description
    bool
    | Edit this page View Source

    particlePanel

    Declaration
    public ParticleUIHandler particlePanel
    Field Value
    Type Description
    ParticleUIHandler
    | Edit this page View Source

    sprite_contracted

    Declaration
    public Sprite sprite_contracted
    Field Value
    Type Description
    Sprite
    | Edit this page View Source

    sprite_expanded

    Declaration
    public Sprite sprite_expanded
    Field Value
    Type Description
    Sprite

    Methods

    | Edit this page View Source

    ContractRandomisationExtension(bool)

    Starts the contraction of the randomization panel.

    Declaration
    public void ContractRandomisationExtension(bool useLerp)
    Parameters
    Type Name Description
    bool useLerp

    Indicates whether the contraction should be animated.

    | Edit this page View Source

    ExpandRandomisationExtension(bool)

    Starts the expansion of the randomization panel.

    Declaration
    public void ExpandRandomisationExtension(bool useLerp)
    Parameters
    Type Name Description
    bool useLerp

    Indicates whether the expansion should be animated.

    | Edit this page View Source

    GetLerpEnabled()

    Checks whether or not the smooth lerping animation is enabled.

    Declaration
    public bool GetLerpEnabled()
    Returns
    Type Description
    bool

    true if and only if the animation is enabled.

    | Edit this page View Source

    OnOpenClose(bool)

    Callback that should be triggered when the particle panel is opened or closed.

    If the particle panel is opened in Init Mode, the randomization panel is automatically opened without animation.

    Declaration
    private void OnOpenClose(bool opened)
    Parameters
    Type Name Description
    bool opened

    Indicates whether the particle panel was opened.

    | Edit this page View Source

    SetLerpEnabled(bool)

    Enables or disables the smooth lerping animation.

    Declaration
    public void SetLerpEnabled(bool lerpEnabled)
    Parameters
    Type Name Description
    bool lerpEnabled

    The new enabled status.

    | Edit this page View Source

    SetToDefault()

    Closes the randomization panel without animation.

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

    Start()

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

    ToggleExpansionOrContraction()

    Switches the current expansion state or movement to the respective other one with animation, if animation is enabled.

    Declaration
    public void ToggleExpansionOrContraction()
    | Edit this page View Source

    Update()

    Declaration
    public void Update()
    | Edit this page View Source

    UpdateUI()

    Translates the linear movement percentage into a smooth movement and converts the percentage into real size values for the vertical layout group and the rect transform. Also applies the correct image to the control button.

    Declaration
    private void UpdateUI()
    • 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