docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method SetFrameState

    SetFrameState(bool)

    Sets the interaction state for this frame. This method should only be called once per frame.

    Declaration
    public void SetFrameState(bool isActive)
    Parameters
    Type Name Description
    bool isActive

    Whether the state is active (in other words, pressed).

    SetFrameState(bool, float)

    Sets the interaction state for this frame. This method should only be called once per frame.

    Declaration
    public void SetFrameState(bool isActive, float newValue)
    Parameters
    Type Name Description
    bool isActive

    Whether the state is active (in other words, pressed).

    float newValue

    The interaction value.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)