StaticEditorFlags.ReflectionProbeStatic

描述

在预计算反射探针(其类型属性设置为烘焙)的数据时,包含此游戏对象。

有关更多信息,请参阅 [[wiki:ReflectionProbes|反射探针]] 文档。

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.ReflectionProbeStatic;
        GameObjectUtility.SetStaticEditorFlags(go, flags);
    }
}

Did you find this page useful? Please give it a rating: