docs.unity3d.com
    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
    Syntax
    public enum Behaviour

    Fields

    Name Description Value
    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.


    0
    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.


    1
    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.


    2
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023