Api Sandbox WorldInput
class

WorldInput

public sealed class WorldInput : 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

WorldInput()

Properties

Name Type Description
LeftMouseAction String Which action is our left clicking button?
RightMouseAction String Which action is our right clicking button?
VRHandSource HandSources If using VR this will be the hand source for input.
Hovered Panel The Panel that is currently hovered by this input.
Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.WorldInput