ドキュメント

Unity Engine

Unity Engine

CreateCachedEditorWithContext

Creates a cached editor using a context object.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

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.