Enum InputSettings.UpdateMode | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Enum InputSettings.UpdateMode

    How the input system should update.

    Namespace: UnityEngine.Experimental.Input
    Syntax
    public enum UpdateMode
    Remarks

    By default, the input system will run event processing as part of the player loop. In the default configuration, the processing will happens once before every fixed update () and once before every dynamic update (), i.e. ProcessEventsInBothFixedAndDynamicUpdate is the default behavior.

    Note that as dynamic and fixed update represent different timelines, input state () is stored separately for them. This means that if both dynamic and fixed updates are enabled, twice the memory is consumed as compared to enabling only one of the updates.

    There are two types of updates not governed by UpdateMode. One is Editor which will always be enabled in the editor and govern input updates for s in sync to .

    The other update type is BeforeRender. This type of update is enabled and disabled automatically in response to whether devices are present requiring this type of update (updateBeforeRender). This update does not consume extra state.

    Fields

    Name Description
    ProcessEventsInBothFixedAndDynamicUpdate

    Automatically run updates both right before and right before .

    ProcessEventsInDynamicUpdateOnly

    Automatically run updates only right before .

    ProcessEventsInFixedUpdateOnly

    Automatically run updates only right before .

    ProcessEventsManually

    Do not run updates automatically. In this mode, Update() must be called manually to update input.

    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