API ReferenceSandbox.UI
WorldPanelclass
An interactive 2D panel rendered in the 3D world.
Constructors1
Showing 1 constructors
public WorldPanel(Sandbox.SceneWorld world)
| Parameter | Type | Description |
|---|---|---|
| world | SceneWorld | — |
No results match this filter.
Methods5
Showing 5 methods
public virtual void Delete(bool immediate = False)
| Parameter | Type | Description |
|---|---|---|
| immediate = False | bool | — |
Returns:
void—public virtual void OnDeleted()
Returns:
void—public virtual bool RayToLocalPosition(Ray ray, Vector2 position, float distance)
| Parameter | Type | Description |
|---|---|---|
| ray | Ray | — |
| position | Vector2 | — |
| distance | float | — |
Returns:
bool—No results match this filter.
Properties7
Showing 7 properties
public float Sandbox.UI.WorldPanel.MaxInteractionDistance { get; set; }
Maximum distance at which a player can interact with this world panel.
Returns:
float—public Rotation Sandbox.UI.WorldPanel.Rotation { get; set; }
Rotation of the world panel in 3D space.
public static float Sandbox.UI.WorldPanel.ScreenToWorldScale { get; set; }
Returns:
float—public Sandbox.ITagSet Sandbox.UI.WorldPanel.Tags { get; set; }
Tags that are applied to the underlying SceneObject
public Transform Sandbox.UI.WorldPanel.Transform { get; set; }
Transform of the world panel in 3D space.
public float Sandbox.UI.WorldPanel.WorldScale { get; set; }
Scale of the world panel in 3D space.
Returns:
float—No results match this filter.