프로퍼티 | 타입 | 설명 | |
---|---|---|---|
allowMultiTouch | bool | ||
cancelKey0 | KeyCode, | ||
cancelKey1 | KeyCode, | ||
clipRaycasts | bool | ||
current | UICamera, | ||
currentCamera | Camera | ||
currentTouch | MouseOrTouch | ||
currentTouchID | int | ||
debug | bool | ||
eventReceiverMask | LayerMask | ||
fallThrough | GameObject | ||
genericEventHandler | GameObject | ||
horizontalAxisName | string | ||
hoveredObject | GameObject | ||
inputHasFocus | bool | ||
lastHit | |||
lastTouchPosition | Vector2 | ||
mouseClickThreshold | float | ||
mouseDragThreshold | float | ||
onCustomInput | OnCustomInput | ||
rangeDistance | float | ||
scrollAxisName | string | ||
showTooltips | bool | ||
stickyPress | bool | ||
stickyTooltip | bool | ||
submitKey0 | KeyCode, | ||
submitKey1 | KeyCode, | ||
tooltipDelay | float | ||
touchClickThreshold | float | ||
touchDragThreshold | float | ||
useController | bool | ||
useKeyboard | bool | ||
useMouse | bool | ||
useTouch | bool | ||
verticalAxisName | string |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
CompareFunc | int | ||
GetDirection | int | ||
GetDirection | int | ||
GetDirection | int | ||
Highlight | void | ||
IsVisible | bool |
메소드 | 설명 | |
---|---|---|
Awake ( ) : void |
Add this camera to the list.
|
|
FindCameraForLayer ( int layer ) : UICamera, |
Find the camera responsible for handling events on objects of the specified layer.
|
|
FixedUpdate ( ) : void |
Update the object under the mouse if we're not using touch-based input.
|
|
GetTouch ( int id ) : MouseOrTouch |
Get or create a touch event.
|
|
IsHighlighted ( GameObject go ) : bool |
Returns whether the widget should be currently highlighted as far as the UICamera knows.
|
|
Notify ( GameObject go, string funcName, object obj ) : void |
Generic notification function. Used in place of SendMessage to shorten the code and allow for more than one receiver.
|
|
OnApplicationQuit ( ) : void |
Clear the list on application quit (also when Play mode is exited)
|
|
OnDestroy ( ) : void |
Remove this camera from the list.
|
|
OnGUI ( ) : void | ||
ProcessMouse ( ) : void |
Update mouse input.
|
|
ProcessOthers ( ) : void |
Process keyboard and joystick events.
|
|
ProcessTouch ( bool pressed, bool unpressed ) : void |
Process the events of the specified touch.
|
|
ProcessTouches ( ) : void |
Update touch-based events.
|
|
Raycast ( Vector3 inPos, |
Returns the object under the specified position.
|
|
RemoveTouch ( int id ) : void |
Remove a touch event from the list.
|
|
ShowTooltip ( bool val ) : void |
Show or hide the tooltip.
|
|
Update ( ) : void |
Check the input and send out appropriate events.
|
메소드 | 설명 | |
---|---|---|
CompareFunc ( UICamera, a, UICamera, b ) : int |
Static comparison function used for sorting.
|
|
GetDirection ( KeyCode, up, KeyCode, down ) : int |
Using the keyboard will result in 1 or -1, depending on whether up or down keys have been pressed.
|
|
GetDirection ( KeyCode, up0, KeyCode, up1, KeyCode, down0, KeyCode, down1 ) : int |
Using the keyboard will result in 1 or -1, depending on whether up or down keys have been pressed.
|
|
GetDirection ( string axis ) : int |
Using the joystick to move the UI results in 1 or -1 if the threshold has been passed, mimicking up/down keys.
|
|
Highlight ( GameObject go, bool highlighted ) : void |
Apply or remove highlighted (hovered) state from the specified object.
|
|
IsVisible ( |
Helper function to check if the specified hit is visible by the panel.
|
static public FindCameraForLayer ( int layer ) : UICamera, | ||
layer | int | |
리턴 | UICamera, |
static public IsHighlighted ( GameObject go ) : bool | ||
go | GameObject | |
리턴 | bool |
static public Notify ( GameObject go, string funcName, object obj ) : void | ||
go | GameObject | |
funcName | string | |
obj | object | |
리턴 | void |
public ProcessTouch ( bool pressed, bool unpressed ) : void | ||
pressed | bool | |
unpressed | bool | |
리턴 | void |
static public Raycast ( Vector3 inPos, |
||
inPos | Vector3 | |
hit | ||
리턴 | bool |