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

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
shortlin
Posts: 73
Joined: Wed Jun 03, 2020 1:52 am

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

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

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

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