Page 1 of 1

How does SetActive (SequencerCommand) work?

Posted: Thu Apr 04, 2019 9:39 am
by OneManOnMars
I want to write a different Version of SetActive, I need this to include a setState for my persistanceManager. Anyway I can't usw Find. because a. it does not work on inactive Gameobjects and b. my coder would hate me for it :-D
Alright I thought, easy check out how SetActive from you guys does it. But this sequencercommand does not exist, although I can use it as a command! So what is going on? And how could I adappt ist magic to find any gameobject for my Version of the script?

By the way I can't login to this forum from Chrome and if I use Edge like Right now. I get a warning from my antivirus tool.
Are you aware of this, or is this a problem on my end?
My AntiVirustool gives me this url as the cause.
http:**ww.pixelcrushers.com/phpbb/ucp.php?mode=login **=//w (didn't want it to be a link)

Re: How does SetActive (SequencerCommand) work?

Posted: Thu Apr 04, 2019 11:15 am
by Tony Li
Use PixelCrushers.DialogueSystem.Tools.GameObjectHardFind(). Like the SetActive() sequencer command, this will find inactive GameObjects as long as its root object is active.

Built-in sequencer commands that run in a single frame, such as SetActive(), are built into the Sequencer class; they're not separate script files. It's a tiny bit more efficient that way.

Thanks for the heads-up on the antivirus thing. The forum uses a third party antivirus service (cleantalk) that appears to be down right now. That might be the issue.

Re: How does SetActive (SequencerCommand) work?

Posted: Thu Apr 04, 2019 11:28 am
by OneManOnMars
Thank you very much!

Re: How does SetActive (SequencerCommand) work?

Posted: Thu Apr 04, 2019 11:32 am
by Tony Li
Glad to help!