API ReferenceSandbox
public sealed class Sandbox.WorldInput : Sandbox.Component
A router for world input, the best place to put this is on your player's camera. Uses cursor ray when mouse is active, otherwise the direction of this gameobject. You could also put this on a VR controller to interact with world panels.
Constructors
Showing 1 constructors
public WorldInput()
No results match this filter.
Properties
Showing 4 properties
public Sandbox.UI.Panel Sandbox.WorldInput.Hovered { get; set; }
The `Sandbox.UI.Panel` that is currently hovered by this input.
public string Sandbox.WorldInput.LeftMouseAction { get; set; }
Which action is our left clicking button?
public string Sandbox.WorldInput.RightMouseAction { get; set; }
Which action is our right clicking button?
public Sandbox.VR.VRHand.HandSources Sandbox.WorldInput.VRHandSource { get; set; }
If using VR this will be the hand source for input.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.WorldInput |