SetActive() question
Posted: Wed Feb 13, 2019 9:08 am
Hi
I want to have an object appear in my scene, after a dialogue is completed.
I already found out that SetActive() needs to be added in the 'Sequence' in the Inspector (http://www.pixelcrushers.com/dialogue_s ... dSetActive)
However, I'm still a newbie in programming and not executing it right, because it's not working. The object is currently inactive in the scene, however its parent is an active empty game Object (am I doing this right?). And I entered SetActive(gameObject,[true]) in the 'Sequence'.
I'm a bit confused about 'gameObject': do I need to leave it written like this, or do I need to enter the tag of the game object or the name? Or does it automatically know which gameObject is inactive in the scene and goes to look for that?
I want to have an object appear in my scene, after a dialogue is completed.
I already found out that SetActive() needs to be added in the 'Sequence' in the Inspector (http://www.pixelcrushers.com/dialogue_s ... dSetActive)
However, I'm still a newbie in programming and not executing it right, because it's not working. The object is currently inactive in the scene, however its parent is an active empty game Object (am I doing this right?). And I entered SetActive(gameObject,[true]) in the 'Sequence'.
I'm a bit confused about 'gameObject': do I need to leave it written like this, or do I need to enter the tag of the game object or the name? Or does it automatically know which gameObject is inactive in the scene and goes to look for that?