docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method SetRunInEditModeRecursively

    SetRunInEditModeRecursively(GameObject, bool)

    Sets runInEditMode for all MonoBehaviours on this GameObject and its children.

    Declaration
    public static void SetRunInEditModeRecursively(this GameObject gameObject, bool enabled)
    Parameters
    Type Name Description
    GameObject gameObject

    The GameObject at the root of the hierarchy to be modified.

    bool enabled

    The value to assign to runInEditMode.

    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)