Method StartRunInEditMode | XR Core Utilities | 2.3.0
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method StartRunInEditMode

    StartRunInEditMode(MonoBehaviour)

    Starts running this MonoBehaviour while in edit mode.

    Declaration
    public static void StartRunInEditMode(this MonoBehaviour behaviour)
    Parameters
    Type Name Description
    MonoBehaviour behaviour

    The behaviour

    Remarks

    This function sets runInEditMode to true, which, if the behaviour is currently enabled, calls OnDisable and then OnEnable.

    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)