Page 1 of 1

Quest Indicator UI

Posted: Mon Apr 06, 2020 7:14 pm
by CamperJohn
I'm trying to replace the supplied 2d quest indicator exclamation mark with a 3d one that I created. I made it into a prefab and according to the tooltip, a prefab should be able to be used. But it will not allow me to drag and drop my prefab into the field. Just wondering if there is else I need to do.
indicator.jpg
indicator.jpg (36.98 KiB) Viewed 727 times

Re: Quest Indicator UI

Posted: Mon Apr 06, 2020 9:37 pm
by Tony Li
Hi,

The Quest Indicator Manager's Quest Indicator UI field needs to point to a GameObject or prefab that has a Quest Indicator UI component.

Here are the steps I recommend:

1. Add the prefab Assets / Plugins / Pixel Crushers / Quest Machine / Prefabs / Quest Indicator UI as a child of your NPC's Quest Indicator Manager GameObject:

qmCustomIndicator1.png
qmCustomIndicator1.png (211.99 KiB) Viewed 724 times

The Quest Indicator UI prefab has a number of child GameObjects. Each one is an indicator that will be shown depending on the quest state. For example, if the NPC can offer a quest, it will activate the 'Offer' child GameObject. If the NPC has an offerable quest but the player doesn't meet the offer conditions yet, it will activate the 'Offer Disabled' child instead.

2. Remove whichever child GameObject you want to replace. (You may need to right-click on the prefab and select Unpack Prefab to be able to delete children.) Add your 3D exclamation mark in its place. In the example below, I removed the 'Offer' GameObject and added 'MY 3D OFFER PREFAB' in its place:

qmCustomIndicator2.png
qmCustomIndicator2.png (18.39 KiB) Viewed 724 times

Then assign it to the Quest Indicator UI component:

qmCustomIndicator3.png
qmCustomIndicator3.png (19.96 KiB) Viewed 724 times

3. Inspect the NPC's Quest Indicator Manager component. Assign the Quest Indicator UI child. Then give it a play.

Optional: Once you've confirmed that it works, you can save your customized Quest Indicator UI as a new prefab. Then delete it from the NPC and assign your new prefab to the Quest Indicator Manager instead.

Re: Quest Indicator UI

Posted: Tue Apr 07, 2020 9:44 am
by CamperJohn
Your solution worked perfectly. Thanks for the quick response. Now to work on the animation.

Re: Quest Indicator UI

Posted: Tue Apr 07, 2020 10:18 am
by Tony Li
Great! Happy to help.