[Solved] Selector -> Reticle -> In Range icon/texture... Any way to move it from the centre?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Japtor
Posts: 120
Joined: Thu Jun 28, 2018 1:41 pm

[Solved] Selector -> Reticle -> In Range icon/texture... Any way to move it from the centre?

Post by Japtor »

Hi all,

When the player character (which has a selector) is near to a usable NPC, a text appears. Also, when you are not in range, it disappears. That's cool, and it is a great way of letting the player know if he can interact with the specific NPC.

However, I prefer to show it through a little icon. I have tested the reticle option which does the exact thing I want to implement. However, the icon is always in the centre, and I don't know if there is a way to move it a little bit to the left/right/up/down or it is always static.

Any idea? Other ways are also welcome ;)

Thanks! :)

Regards!
Javier.
Last edited by Japtor on Sat Jun 30, 2018 5:10 am, edited 1 time in total.
User avatar
Tony Li
Posts: 22058
Joined: Thu Jul 18, 2013 1:27 pm

Re: Selector -> Reticle -> In Range icon/texture... Any way to move it from the centre?

Post by Tony Li »

Hi,

There are two ways:

1. Change the main reticle.
  • Inspect the Dialogue Manager's Instantiate Prefabs component. Remove the Basic Standard UI Selector Elements entry from the Prefabs list.
  • Add an instance of the Basic Standard UI Selector Elements prefab to the Dialogue Manager's Canvas.
  • Customize the position and appearance of the Reticle In Range and Reticle Out of Range child GameObjects.
  • You can leave it like this, or save it as a new prefab, and assign the prefab back to the Instantiate Prefabs component.
2. Or, add a Standard Usable UI to the NPC. For example, add an instance of the prefab Basic Standard Usable UI as a child of the NPC. Then customize its appearance. When targeting this NPC, the Selector will show this UI instead of the Standard UI Selector Elements on the Dialogue Manager.
Japtor
Posts: 120
Joined: Thu Jun 28, 2018 1:41 pm

Re: Selector -> Reticle -> In Range icon/texture... Any way to move it from the centre?

Post by Japtor »

Hi Tony,

Yeah, that helped me a lot :)

Thanks!

Regards,
Javier.
Post Reply