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.
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.
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 of using the OpenScene method Sandbox.SceneFile mySceneFile = new Sandbox.SceneFile("path/to/scene"); Editor.EditorScene.OpenScene(mySceneFile);