[ Web Proxy ]
URL:
Viewing: https://docs.unity3d.com/ScriptReference/GameObject-isStatic.html [Back]  [Original]

Unity - Scripting API: GameObject.isStatic
Version: Unity 6.5 (6000.5)
    • Supported
    • Legacy
    LanguageEnglish
    • C#

    GameObject.isStatic

    Suggest a change

    Success!

    Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

    Close

    Submission failed

    For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

    Close
    Your name Your email Suggestion* Submit suggestion

    Cancel

    Switch to Manual
    public bool isStatic;

    Description

    Whether there are any Static Editor Flags set for the GameObject.

    Returns true if any StaticEditorFlags are set. Returns false if no Static Editor Flags are set.

    Set to true to enable all Static Editor Flags. Set to false to disable all Static Editor Flags.

    Static Editor Flags determine which Unity systems consider a GameObject as static, and include the GameObject in their precomputations in the Unity Editor. Setting StaticEditorFlags at runtime has no effect on these systems.

    For more information, refer to Unity Manual documentation on Static Editor Flags.

    Additional resources: StaticEditorFlags, GameObjectUtility.SetStaticEditorFlags.


    Web Proxy Viewer  |  New URL  |  Original Page