CreateEditorWithContext(Object[], Object, Type)
Make a custom editor for targetObject or targetObjects with a context object.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
public static Editor CreateEditorWithContext(Object[] targetObjects, Object context, Type editorType)
Parameters
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.