API ReferenceSandbox
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 System.Collections.Generic.IEnumerable`1<Sandbox.GameObject> GetAll(Sandbox.GameObjectDirectory target)
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 bool ShouldShowInHierarchy(Sandbox.GameObject target)
Return true if this object should be shown in the GameObject list
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Tools |
| Doc ID | T:Sandbox.SceneExtensions |