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

ScriptableRuntimeReflectionSystemSettings.system

切换到手册

描述

当前的可编程运行时反射系统实例。

在您自己的实现中使用 RuntimeInitializeOnLoadMethodAttribute 在方法中设置此属性。

using UnityEngine;
using UnityEngine.Experimental.Rendering;

// Empty ScriptableRuntimeReflectionSystem for the exemple class CustomScriptableRuntimeReflectionSystem : ScriptableRuntimeReflectionSystem {}

class CustomScriptableRuntimeReflectionSystemIntegration { [RuntimeInitializeOnLoadMethod] static void Initialize() { ScriptableRuntimeReflectionSystemSettings.system = new CustomScriptableRuntimeReflectionSystem(); } }