기술 자료

Unity Engine

Unity Engine

CreateEditorWithContext(Object[], Object, Type)

Make a custom editor for targetObject or targetObjects with a context object.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static Editor CreateEditorWithContext(Object[] targetObjects, Object context, Type editorType)

Parameters

targetObjects


context


editorType

Returns

Type

Description

Editor

Remarks

This method is identical to Editor.CreateEditor except that the SerializedObject will be created using the context object passed as parameter. This context object will be used to store and retrieve the value for ExposedReference types declared on the SerializedObject.