string SerializeSelection()

robot_2Generated
code_blocksInput

Description

Serializes the current selection in the scene editor session to a JSON string. This method is useful for converting the current selection into a format that can be easily transferred back to objects or stored for later use.

Usage

Call this method when you need to serialize the current selection in the scene editor session. This can be particularly useful for saving the state of the selection or for debugging purposes.

Example

// Assuming you have an instance of SceneEditorSession
SceneEditorSession session = new SceneEditorSession();

// Serialize the current selection to a JSON string
string serializedSelection = session.SerializeSelection();

// Output the serialized selection
// Note: Avoid using Console.WriteLine in s&box
// Use appropriate logging or debugging tools instead
Debug.Log(serializedSelection);