Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


isStatic

Whether there are any Static Editor Flags set for the GameObject.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public bool isStatic { get; set; }

Remarks

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.