文档

Unity Engine

Unity Engine

CreateCachedEditorWithContext

Creates a cached editor using a context object.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor

CreateCachedEditorWithContext(Object, Object, Type, Editor)

Creates a cached editor using a context object.
public static void CreateCachedEditorWithContext(Object targetObject, Object context, Type editorType, ref Editor previousEditor)

Parameters

targetObject


context


editorType


previousEditor

Remarks

This method is similar to Editor.CreateCachedEditor except that the SerializedObject is created with the context object passed as a parameter. This context object stores and retrieves the value for the ExposedReference types declared on the SerializedObject.

CreateCachedEditorWithContext(Object[], Object, Type, Editor)

Creates a cached editor using a context object.
public static void CreateCachedEditorWithContext(Object[] targetObjects, Object context, Type editorType, ref Editor previousEditor)

Parameters

targetObjects


context


editorType


previousEditor

Remarks

This method is similar to Editor.CreateCachedEditor except that the SerializedObject is created with the context object passed as a parameter. This context object stores and retrieves the value for the ExposedReference types declared on the SerializedObject.