Page 1 of 1
Active game object and invector
Posted: Wed Aug 05, 2020 8:18 am
by Hussien72u
Hello Guys,
my problem is,
when the Quest is done it should Active an Prefab in the scene, but it dont work
i dont know how to fix it.
Re: Active game object and invector
Posted: Wed Aug 05, 2020 9:51 am
by Tony Li
Hi,
Are you using an Instantiate Prefab quest action? You can add it to the quest's Successful state > Actions list. It will instantiate a prefab when the quest reaches the successful state.
Re: Active game object and invector
Posted: Wed Aug 05, 2020 12:02 pm
by Hussien72u
iam not using Instantiate Prefab quest action iam using Active gameobject uest Action
Re: Active game object and invector
Posted: Wed Aug 05, 2020 12:55 pm
by Tony Li
Is killer123 the exact name of a GameObject currently in the scene?
Re: Active game object and invector
Posted: Wed Aug 05, 2020 6:40 pm
by Hussien72u
yes, dont worry i used Instantiate Prefab quest action its much better as it take drag and drop not by name.
Re: Active game object and invector
Posted: Wed Aug 05, 2020 6:52 pm
by Tony Li
Great! Sounds like it's working then.
BTW, they have different purposes.
Activate GameObject activates/deactivates a GameObject that is already in the scene.
Instantiate Prefabs creates a new GameObject in the scene from a prefab asset that's in your project.