s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Components
WorldInput
chevron_left
Components
class
WorldInput
search
Constructors
functions
WorldInput
Properties
data_object
Hovered
data_object
LeftMouseAction
data_object
RightMouseAction
data_object
VRHandSource
menu
WorldInput
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.
class
Sandbox
.
account_tree
extends
Component
sealed
Sandbox.Engine
build
Constructors
1
WorldInput
(
)
data_object
Properties
4
Hovered
Panel
The Sandbox.UI.Panel that is currently hovered by this input.
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.
Inheritance
Component
WorldInput
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.