Page 1 of 1

Custom sequnce command using GetSubject could not find a Tag transform which is inactive

Posted: Fri Sep 25, 2020 6:08 am
by shortlin
Hi Tony,I found custom sequence command using GetSubject could not find a Tag transform which is inactive.It would got null.But using native sequence such like SetActive,It could use.

for example,I use MySequence(tag=XXX);and the transform named scene_XXX is inactive now,so I use GetSubject(0) would get Null.but If I use MySequence(scene_XXX); GetSubject(0) would get the transform.

So is it normal to get null when I use tag in the transform which is inactive?

Re: Custom sequnce command using GetSubject could not find a Tag transform which is inactive

Posted: Fri Sep 25, 2020 8:52 am
by Tony Li
Yes, it's normal right now. SetActive() uses special code to find inactive GameObjects. In the next update, I'll implement the same for GetSubject() so it can find inactive GameObjects by tag.