SceneUtilityclass

objectSceneUtility
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public static abstract sealed class Sandbox.SceneUtility

Methods10

Showing 10 methods

public static void MakeGameObjectsUnique(System.Text.Json.Nodes.JsonObject json, System.Nullable`1<System.Guid> rootGuid = null)PUBLICSTATICOBSOLETE

Obsolete: Use MakeIdGuidsUnique

ParameterTypeDescription
jsonJsonObject
rootGuid = nullNullable<Guid>
Returns:void

public static System.Collections.Generic.Dictionary`2<System.Guid,System.Guid> MakeIdGuidsUnique(System.Text.Json.Nodes.JsonObject json, System.Nullable`1<System.Guid> rootGuid = null)PUBLICSTATIC

ParameterTypeDescription
jsonJsonObject
rootGuid = nullNullable<Guid>
Returns:Dictionary<Guid,Guid>

public static void RenderGameObjectToBitmap(Sandbox.GameObject objSource, Sandbox.Bitmap bitmap)PUBLICSTATIC

Render a GameObject to a bitmap. This is usually used for easily rendering "previews" of GameObjects, for things like saving thumbnails etc.

ParameterTypeDescription
objSourceGameObject
bitmapBitmap
Returns:void

public static void RenderModelBitmap(Sandbox.Model model, Sandbox.Bitmap bitmap)PUBLICSTATIC

Render a Model to a bitmap. This is usually used for easily rendering "previews" of Models for thumbnails

ParameterTypeDescription
modelModel
bitmapBitmap
Returns:void

public static void RunInBatchGroup(System.Action action)PUBLICSTATICOBSOLETE

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.

Obsolete: Use Scene.BatchGroup() instead

ParameterTypeDescription
actionAction
Returns:void

On this page