s&box docs

public static abstract sealed class Sandbox.SceneExtensions

Methods

Showing 12 methods

public static void CopyToClipboard(Sandbox.Component component)

Copy the target `Sandbox.Component` to the clipboard.

public static Editor.Menu CreateContextMenu(Sandbox.Scene scene, Editor.Widget parent = null)

We should make this globally reachanle at some point. Should be able to draw icons using bitmaps etc too.

Parameters

  • parent: Default: null

public static void DisableEditorRigidBodies(Sandbox.Scene scene)

public static void EnableEditorPhysics(Sandbox.Scene scene, bool enabled)

public static void EnableEditorRigidBody(Sandbox.Scene scene, Sandbox.Rigidbody body, bool enabled)

public static bool IsDeletable(Sandbox.GameObject target)

public static void PaintComponentIcon(Sandbox.TypeDescription td, Sandbox.Rect rect, float opacity = 1)

Parameters

  • opacity: Default: 1

public static void PasteComponent(Sandbox.GameObject target)

Paste a `Sandbox.Component` as a new component on the target `Sandbox.GameObject`.

public static void PasteValues(Sandbox.Component target)

Paste component values from clipboard to the target `Sandbox.Component`.

public static void SetTargetTransform(Sandbox.Rigidbody body, System.Nullable`1<Transform> tx)

public static bool ShouldShowInHierarchy(Sandbox.GameObject target)

Return true if this object should be shown in the GameObject list

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Tools
Doc IDT:Sandbox.SceneExtensions

On this page