Page 1 of 1

Change Raw Image Reticle

Posted: Thu May 19, 2022 11:05 pm
by rauljl1
Hi Tony. I would like to change the Reticle in Range Raw Image component for a Sprite Renderer with an animation Controller.
How can I do it?

Re: Change Raw Image Reticle

Posted: Fri May 20, 2022 8:13 am
by Tony Li
Hi,

You can entirely remove the Reticle In Range / Reticle Out Of Range elements from your Standard UI Selector Elements.

If your Sprite Renderer is on the Usable GameObject (e.g., NPC), then configure the Usable component's OnSelect() and OnDeselect() UnityEvents to activate and deactivate a Sprite Renderer on your NPC.

If your Sprite Renderer is not specific to the Usable's position (e.g., centered on the screen in screen space), use the Select/ProximitySelector's OnSelectedUsable() and OnDeselectedUsable() events instead.

Re: Change Raw Image Reticle

Posted: Fri May 20, 2022 12:42 pm
by rauljl1
Thanks!

Re: Change Raw Image Reticle

Posted: Fri May 20, 2022 12:44 pm
by Tony Li
Glad to help!