Difference between revisions of "InvisibleButton"
From Headbone Creative
(Initial page, includes API information and categories) |
Latest revision as of 19:21, 15 April 2013
This script implements a simple button that has no display, but can be tapped in order to send a message to another object.
Contents |
[edit] Public Variables
[edit] tapsRequired : int
This is the number of taps required before the message will be sent.
[edit] target : GameObject
This is the object to which the message will be sent.
[edit] message : string
This is the message to send. It will be sent using GameObject.SendMessage to the target object.
[edit] tapTime : float
This is the maximum time between taps, in seconds.
[edit] viewCamera : Camera
This is the camera that views the scene in which this button resides. If this is not set, it will default to the main camera.