PixelCrushers.DialogueSystem.SelectorFollowTarget Class Reference

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...

Inheritance diagram for PixelCrushers.DialogueSystem.SelectorFollowTarget:
Collaboration diagram for PixelCrushers.DialogueSystem.SelectorFollowTarget:

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)
 

Detailed Description

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.

Member Function Documentation

◆ DrawOnSelection()

void PixelCrushers.DialogueSystem.SelectorFollowTarget.DrawOnSelection ( Usable  usable,
float  distance,
Selector::Reticle  reticle,
GUIStyle  guiStyle,
string  defaultUseMessage,
Color  inRangeColor,
Color  outOfRangeColor,
TextStyle  textStyle,
Color  textStyleColor 
)
inlineprotected

◆ OnGUI()

virtual void PixelCrushers.DialogueSystem.SelectorFollowTarget.OnGUI ( )
inlinevirtual

If using legacy Unity GUI, draws the selection UI on top of the selection target.

◆ Update()

virtual void PixelCrushers.DialogueSystem.SelectorFollowTarget.Update ( )
inlinevirtual

If using Standard UI, positions the UI elements on top of the usable target.

Member Data Documentation

◆ offset

Vector3 PixelCrushers.DialogueSystem.SelectorFollowTarget.offset = Vector3.zero

The documentation for this class was generated from the following file: