Version: 2023.1
Experimental: this API is experimental and might be changed or removed in the future.

ScriptableBakedReflectionSystemSettings.system

切换到手册

描述

当前处于活动状态的 ScriptableBakedReflectionSystem,请参阅 IScriptableBakedReflectionSystem

使用 InitializeOnLoadAttribute 在类中设置此属性或在您自己的实现中使用 InitializeOnLoadMethodAttribute 在方法中设置此属性。

using UnityEditor;
using UnityEditor.Experimental.Rendering;

// Empty ScriptableBakedReflectionSystem for the exemple class CustomScriptableBakedReflectionSystem : ScriptableBakedReflectionSystem { public CustomScriptableBakedReflectionSystem() : base(1) { } }

class CustomScriptableBakedReflectionSystemIntegration { [InitializeOnLoadMethod] static void Initialize() { ScriptableBakedReflectionSystemSettings.system = new CustomScriptableBakedReflectionSystem(); } }