docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum OnScreenStick.Behaviour

    Defines how the onscreen stick will move relative to it's center of origin and the press position.

    Namespace: UnityEngine.InputSystem.OnScreen
    Assembly: Unity.InputSystem.dll
    Syntax
    public enum OnScreenStick.Behaviour

    Fields

    Name Description
    ExactPositionWithDynamicOrigin

    The control's center of origin is determined by the initial press position. The control will begin unactuated at this center position and then track the current press position.

    ExactPositionWithStaticOrigin

    The control's center of origin is fixed in the scene. The control may begin from an actuated position to ensure it is always tracking the current press position.

    RelativePositionWithStaticOrigin

    The control's center of origin is fixed in the scene. The control will begin un-actuated at it's centered position and then move relative to the press motion.

    In This Article
    Back to top
    Copyright © 2024 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)