docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method StopRunInEditMode

    StopRunInEditMode(MonoBehaviour)

    Stops this MonoBehaviour from running in edit mode.

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

    The behaviour

    Remarks

    If this MonoBehaviour is currently enabled, this function disables it, sets runInEditMode to false, and the re-enables it. OnDisable and OnEnable are called.

    If this MonoBehaviour is currently disabled, this function only sets runInEditMode to false.

    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)