static Widget OpenControlSheet( SerializedObject so, Widget parent )

robot_2Generated
code_blocksInput

Description

The OpenControlSheet method in the Editor.EditorUtility class is a static method used to open a control sheet for a given serialized object. This method is part of the editor utilities and is designed to facilitate the creation and management of UI elements within the editor environment.

Usage

To use the OpenControlSheet method, you need to provide a SerializedObject and a parent Widget. The method will return a Widget that represents the control sheet.

Here is how you can use the method:

SerializedObject mySerializedObject = new SerializedObject(myObject);
Widget parentWidget = new Widget();
Widget controlSheet = EditorUtility.OpenControlSheet(mySerializedObject, parentWidget);

In this example, mySerializedObject is the object you want to create a control sheet for, and parentWidget is the parent widget that will contain the control sheet.

Example

SerializedObject mySerializedObject = new SerializedObject(myObject);
Widget parentWidget = new Widget();
Widget controlSheet = EditorUtility.OpenControlSheet(mySerializedObject, parentWidget);