Quest Indicator UI
- CamperJohn
- Posts: 14
- Joined: Sun Apr 05, 2020 7:01 pm
- Contact:
Quest Indicator UI
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.
Re: Quest Indicator UI
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:
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:
Then assign it to the Quest Indicator UI component:
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.
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:
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:
Then assign it to the Quest Indicator UI component:
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.
- CamperJohn
- Posts: 14
- Joined: Sun Apr 05, 2020 7:01 pm
- Contact:
Re: Quest Indicator UI
Your solution worked perfectly. Thanks for the quick response. Now to work on the animation.
Re: Quest Indicator UI
Great! Happy to help.