Active game object and invector

Announcements, support questions, and discussion for Quest Machine.
Post Reply
Hussien72u
Posts: 3
Joined: Tue Aug 04, 2020 2:45 pm

Active game object and invector

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

Re: Active game object and invector

Post 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.
Hussien72u
Posts: 3
Joined: Tue Aug 04, 2020 2:45 pm

Re: Active game object and invector

Post by Hussien72u »

iam not using Instantiate Prefab quest action iam using Active gameobject uest Action
Attachments
2.PNG
2.PNG (11.51 KiB) Viewed 519 times
1.PNG
1.PNG (13.58 KiB) Viewed 519 times
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Active game object and invector

Post by Tony Li »

Is killer123 the exact name of a GameObject currently in the scene?
Hussien72u
Posts: 3
Joined: Tue Aug 04, 2020 2:45 pm

Re: Active game object and invector

Post by Hussien72u »

yes, dont worry i used Instantiate Prefab quest action its much better as it take drag and drop not by name.
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Active game object and invector

Post 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.
Post Reply