文档

Unity Engine

Unity Engine

system

The current scriptable runtime reflection system instance.
阅读时间1 分钟最后更新于 1 个月前

Definition

public static IScriptableRuntimeReflectionSystem system { get; set; }

Remarks

Set this property in a method with RuntimeInitializeOnLoadMethodAttribute with your own implementation.

Examples

using UnityEngine;using UnityEngine.Experimental.Rendering;// Empty ScriptableRuntimeReflectionSystem for the exempleclass CustomScriptableRuntimeReflectionSystem : ScriptableRuntimeReflectionSystem {}class CustomScriptableRuntimeReflectionSystemIntegration{ [RuntimeInitializeOnLoadMethod] static void Initialize() { ScriptableRuntimeReflectionSystemSettings.system = new CustomScriptableRuntimeReflectionSystem(); }}