기술 자료

Unity Engine

Unity Engine

CreateCachedEditorWithContext

Creates a cached editor using a context object.
읽는 시간 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.