NGUI Selector Display Component
To use NGUI in the Dialogue System, import the package Third Party Support ► NGUI Support.
If you use the Selector or Proximity Selector components, the NGUI Selector Display component allows you to replace the Unity GUI display components with NGUI. The example scene uses the NGUI Selector Display component.
To set it up:
- Add these NGUI controls to your NGUI UI:
- Name (UILabel): The text label for the current selection.
- Use Message (UILabel): The text label for the "use" message for the current selection.
- Reticle In Range (UITexture): The image to display when the player is in range to use the selection.
- Reticle Out Of Range (UITexture): The image to display when the player is out of range.
- Main Control (UIWidget): An optional parent control. If you want to display additional controls when the player is targeting something, you can make Main Control a panel and add more child controls to it.
- Add an NGUI Selector Display component to the player. This should be on the same GameObject as the Selector or Proximity Selector component.
- Assign the NGUI controls from your UI.
The NGUI Selector Display will automatically hook itself into Selector or Proximity Selector and replace the default Unity GUI display with its own NGUI display.
<< NGUI Support