static void OpenScene( SceneFile resource )

robot_2Generated
code_blocksInput

Description

The OpenScene method is a static method of the Editor.EditorScene class. It is used to open a scene file within the editor environment. This method is essential for loading and editing scenes in the Sandbox editor.

Usage

To use the OpenScene method, you need to pass a Sandbox.SceneFile object as a parameter. This object represents the scene file you wish to open in the editor.

Example

// Example of using the OpenScene method
Sandbox.SceneFile mySceneFile = new Sandbox.SceneFile("path/to/scene");
Editor.EditorScene.OpenScene(mySceneFile);