StaticEditorFlags
Describes which Unity systems consider the GameObject as static, and include the GameObject in their precomputations in the Unity Editor.
Read time 1 minuteLast updated 3 days ago
Definition
- Type: Enum
- Namespace: UnityEditor
- Assembly: UnityEditor
[Flags]public enum StaticEditorFlags
Remarks
Setting StaticEditorFlags at runtime has no effect on these systems.
For more information, see the Unity Manual documentation on StaticEditorFlags.
Additional Resources: GameObjectUtility.SetStaticEditorFlags, GameObject.isStatic
Fields
Value | Description |
|---|---|
| BatchingStatic | Combine the GameObject's Mesh with other eligible Meshes, to potentially reduce runtime rendering costs. |
| ContributeGI | Include the target Mesh Renderer in global illumination calculations. |
| OccludeeStatic | Mark the GameObject as a Static Occludee in the occlusion culling system. |
| OccluderStatic | Mark the GameObject as a Static Occluder in the occlusion culling system. |
| ReflectionProbeStatic | Include this GameObject when when precomputing data for Reflection Probes whose Type property is set to Baked. |