Home › Page › UghInput

UghInput

Revision for “UghInput” created on 22 July, 2013 @ 20:57

Title
UghInput
Content
Inherits from MonoBehaviour UghInput detects finger and mouse input and relays that information to all UghElements.  You can call UghInput class variables and functions from any script to get information about the current input. UghInput is a smart object that will instantiate itself when needed.  (You should never have to manually add an UghInput to a scene.) [table caption="Class Variables" colwidth="20%|20%"] name, type, description Instance, UghInput, "Returns the instance of this class in the scene, or null if none." <span style="line-height: 13px;">InputPosition, Vector3, The current position of the mouse or finger touching the screen. </span> InputPositionInWorldSpace, Vector3, The InputPosition in world space (as relative to the UghCamera.) IsInputDown, boolean, "True if a finger is touching the screen or the left mouse button is down, false otherwise." UseTouchInput, boolean, If touch input was detected as a valid means of input. [/table] <span>[table caption="Class Functions" colwidth="20%|20%"]</span>name, type, description InputToWorldPoint, Vector3, Converts a position on the screen to world position (as relative to the UghCamera.) [/table] [table caption="Class Functions" colwidth="20%|20%"] name, type, description InputToWorldPoint, Vector3, Converts a position on the screen to world position (as relative to the UghCamera.) [/table]
Excerpt


OldNewDate CreatedAuthorActions
22 July, 2013 @ 20:57 admin
22 July, 2013 @ 20:56 admin
22 July, 2013 @ 20:55 [Autosave] admin
17 April, 2013 @ 18:16 admin
28 March, 2013 @ 21:09 admin
28 March, 2013 @ 21:06 admin
18 March, 2013 @ 19:36 admin
18 March, 2013 @ 19:25 admin
18 March, 2013 @ 15:25 admin
18 March, 2013 @ 15:24 admin
18 March, 2013 @ 15:24 admin
18 March, 2013 @ 15:23 admin
18 March, 2013 @ 15:22 admin
18 March, 2013 @ 15:22 admin
8 March, 2013 @ 21:51 admin
8 March, 2013 @ 21:51 admin
8 March, 2013 @ 21:46 admin
8 March, 2013 @ 21:43 admin
6 March, 2013 @ 22:31 admin
6 March, 2013 @ 22:28 admin
6 March, 2013 @ 22:09 admin
6 March, 2013 @ 22:05 admin
6 March, 2013 @ 21:48 admin