StaticEditorFlags.OccludeeStatic
Описание
Отметить GameObject как статическую окклюзию в системе отбора по окклюзии.
Для получения дополнительной информации, см. документацию по системе окклюзии.
using UnityEngine; using UnityEditor; public class StaticEditorFlagsExample { [MenuItem("Examples/Create GameObject and set Static Editor Flags")] static void CreateGameObjectAndSetStaticEditorFlags() { // Create a GameObject var go = new GameObject("Example"); // Set the GameObject's StaticEditorFlags var flags = StaticEditorFlags.OccludeeStatic; GameObjectUtility.SetStaticEditorFlags(go, flags); } }
Дополнительные ресурсы: GameObjectUtility.SetStaticEditorFlags, GameObject.isStatic