Disabled/enabled game object children.
edited April 12
I attached a bunch of gameobjects to a parent empty object. On a trigger, I want to enabled/disabled all the children of that parent object. Is there an easy way to do it in Makinon/Ork? I don't see any such option in the
Post edited by Shadow_Fire on
The easiest way is to enable/disable the parent object, since that would also enable/disable the child objects.
Otherwise you can do that in Makinom by first using a
node to store all
components in selected data (using the
All In Children
scope). Now you can use an
node using the selected data you stored the components in, that'll use the game objects of the stored components.
Ahhh I remember long ago you said that disabled object can't be enabled unless they are a child of another gameobject. I even tested it and it didn't work back then. When did they change it? Either way, awesome news for me because it works now. Thanks!
That wasn't the case - disabled game objects can always be enabled, it's just that Unity can't find disabled objects (e.g. when using the find object settings in an ORK event). You could always work around that by either selecting the game object as an actor in the event interaction (i.e. using an
actor without find object enabled), or by parenting it to another object that isn't disabled.
Ah yeah, that actually makes more sense. Thanks for the clarification and advice :)
It looks like you're new here. If you want to get involved, click one of these buttons!
Makinom Tips, Tricks & Tutorials
ORK Tips, Tricks & Tutorials
ORK 1 & MSE Support
** ORK Framework Manual (PDF and Docx, 698 pages) **
Creating a Main Menu
[Solved] BattleView Camera is at ground level
on September 22
[SOLVED]Changing target doesn't attack the next target
on September 22
Who's Online (3)
© 2015 Gaming is Love e.U.