Page 1 of 1

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

Posted: Fri Jun 29, 2018 11:20 am
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.

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

Posted: Fri Jun 29, 2018 2:31 pm
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.

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

Posted: Sat Jun 30, 2018 5:10 am
by Japtor
Hi Tony,

Yeah, that helped me a lot :)

Thanks!

Regards,
Javier.