This component modifies the behavior of a Selector or ProximitySelector to draw the heading and reticle on top of the selection instead an absolute screen position. More...
Public Member Functions | |
virtual void | Update () |
If using Standard UI, positions the UI elements on top of the usable target. | |
virtual void | OnGUI () |
If using legacy Unity GUI, draws the selection UI on top of the selection target. | |
Public Attributes | |
Vector3 | offset = Vector3.zero |
Protected Member Functions | |
void | DrawOnSelection (Usable usable, float distance, Selector.Reticle reticle, GUIStyle guiStyle, string defaultUseMessage, Color inRangeColor, Color outOfRangeColor, TextStyle textStyle, Color textStyleColor) |
This component modifies the behavior of a Selector or ProximitySelector to draw the heading and reticle on top of the selection instead an absolute screen position.
If you're using this with Standard UI, size the Main Graphic appropriately so this script can determine its size.
|
inlineprotected |
|
inlinevirtual |
If using legacy Unity GUI, draws the selection UI on top of the selection target.
|
inlinevirtual |
If using Standard UI, positions the UI elements on top of the usable target.
Vector3 PixelCrushers.DialogueSystem.SelectorFollowTarget.offset = Vector3.zero |