Applying 'Selector Follow Target' to one of the Multiple selector UIs
Posted: Mon Aug 02, 2021 5:21 am
Hi,
In my game, there is three type of selector UI - for usable, talkable npc, and others(default). Each one is identified by a tag, so I set up Selector Use Standard UI Elements component like this:
And also I want to "USE" Selector UI is showing on the top of the object, adding Selector follow target component to PlayerObject which has proximity selector. All selector UIs are drawn on the Screen space overray canvas.
When I ran game, the main panel of the selector UI for 'USE' is activated when the player character move to near an object tagged 'USE' was active, but the UI did not follow the target object. It is fixed in the center of the screen. When I checked up the Rect transform position of each Selector UI in the hierarchy, only the position of the 'NPC' Selector main panel (disabled at this time) was changed, and for the other two, 'USE' and 'DEFAULT' did not change. It looks like Selector follow target is updating position of first instance of selector UI Element only.
Is there a good way to apply a 'selector following target' to only one of multiple UI elements? I need help.
In my game, there is three type of selector UI - for usable, talkable npc, and others(default). Each one is identified by a tag, so I set up Selector Use Standard UI Elements component like this:
And also I want to "USE" Selector UI is showing on the top of the object, adding Selector follow target component to PlayerObject which has proximity selector. All selector UIs are drawn on the Screen space overray canvas.
When I ran game, the main panel of the selector UI for 'USE' is activated when the player character move to near an object tagged 'USE' was active, but the UI did not follow the target object. It is fixed in the center of the screen. When I checked up the Rect transform position of each Selector UI in the hierarchy, only the position of the 'NPC' Selector main panel (disabled at this time) was changed, and for the other two, 'USE' and 'DEFAULT' did not change. It looks like Selector follow target is updating position of first instance of selector UI Element only.
Is there a good way to apply a 'selector following target' to only one of multiple UI elements? I need help.