Change Raw Image Reticle

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
rauljl1
Posts: 55
Joined: Fri Apr 15, 2022 7:40 pm

Change Raw Image Reticle

Post 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?
User avatar
Tony Li
Posts: 22148
Joined: Thu Jul 18, 2013 1:27 pm

Re: Change Raw Image Reticle

Post 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.
User avatar
rauljl1
Posts: 55
Joined: Fri Apr 15, 2022 7:40 pm

Re: Change Raw Image Reticle

Post by rauljl1 »

Thanks!
User avatar
Tony Li
Posts: 22148
Joined: Thu Jul 18, 2013 1:27 pm

Re: Change Raw Image Reticle

Post by Tony Li »

Glad to help!
Post Reply