Version: 2022.1

Editor.CreateCachedEditorWithContext

切换到手册
public static void CreateCachedEditorWithContext (Object targetObject, Object context, Type editorType, ref Editor previousEditor);
public static void CreateCachedEditorWithContext (Object[] targetObjects, Object context, Type editorType, ref Editor previousEditor);

描述

使用上下文对象创建缓存的编辑器。

此方法类似于 CreateCachedEditor,只不过创建 SerializedObject 时会传递上下文对象作为参数。此上下文对象会存储并获取在 SerializedObject 上声明的 ExposedReference 类型的值。