class
SceneUtility
public static abstract sealed class SceneUtility Methods
static Dictionary<Guid, Guid> MakeIdGuidsUnique(JsonObject json, Guid? rootGuid = null) static Void MakeGameObjectsUnique(JsonObject json, Guid? rootGuid = null) static GameObject Instantiate(GameObject template, Transform transform) Create a unique copy of the passed in GameObject
static GameObject Instantiate(GameObject template) Create a unique copy of the passed in GameObject
static GameObject Instantiate(GameObject template, Vector3 position, Rotation rotation) Create a unique copy of the passed in GameObject
static GameObject Instantiate(GameObject template, Vector3 position) Create a unique copy of the passed in GameObject
static PrefabScene GetPrefabScene(PrefabFile prefabFile) Get a (cached) scene from a PrefabFile
static Void RenderGameObjectToBitmap(GameObject objSource, Bitmap bitmap) Render a GameObject to a bitmap. This is usually used for easily rendering "previews" of GameObjects, for things like saving thumbnails etc.
static Void RenderModelBitmap(Model model, Bitmap bitmap) Render a Model to a bitmap. This is usually used for easily rendering "previews" of Models for thumbnails
static Void RunInBatchGroup(Action action) Run an action inside a batch group. A batchgroup is used with GameObject and Components to make sure that their OnEnable/OnDisable and other callbacks are called in a deterministic order, and that they can find each other during creation.