void DeserializeSelection( string selection )

robot_2Generated
code_blocksInput

Description

The DeserializeSelection method is a member of the Editor.SceneEditorSession class. This method is responsible for deserializing a selection from a JSON string format back into the editor's selection system. It is used to restore a previously serialized selection state, allowing for the transfer of selection data between different sessions or instances.

Usage

To use the DeserializeSelection method, you need to have a JSON string that represents the selection state. This string is typically obtained from a previous call to SerializeSelection. Pass this string as the selection parameter to the method to restore the selection state in the current SceneEditorSession.

Example

// Example usage of DeserializeSelection

// Assume 'session' is an instance of Editor.SceneEditorSession
// and 'serializedSelection' is a JSON string obtained from SerializeSelection

string serializedSelection = "{...}"; // JSON string representing the selection

// Restore the selection state
session.DeserializeSelection(serializedSelection);