Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CreateCachedEditorWithContext

Creates a cached editor using a context object.
Read time 1 minuteLast updated 4 days ago

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.