WorldInput API change #1273
handsomematt
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The WorldInput API has changed, this resolves a lot of issues people were having with them, giving you more control and allowing stuff like simultaneous inputs for VR.
2021-11-09.02-14-54-1.mp4
To use the API now, create an instance of
Sandbox.UI.WorldInput
and update the values on that directly either in BuildInput or FrameSimulate or anywhere you think makes sense. This is ticked internally just like normal panel input.The ideal way to use them is to have WorldInput be a field on either your Pawn or VRHand or something similar, that way the lifecycle is directly attached to it.
Here are some basic examples of various ways you might use them:
Beta Was this translation helpful? Give feedback.
All reactions