object enabled turns off all objects
Hey guys,
I have 2 objects
and I have separated the scripts (duplicated I know...but for this purpose....)
when I have an on tap function to run this script
// @input SceneObject object
script.object.enabled = false;
it does disable the object but it disables all objects as well not one selected from the input...
I have even tried to rename objects to make sure its wasn't clashing
any suggestions?
Hi Patrick, I suspect you have children objects underneath the parent object you are turning off. When you turn off a parent object, it will turn off all children objects as well. You're basically turning off an entire branch and just just a single object. You can visualize this in the editor by pressing the checkbox next to the parent object in the Objects window. Notice all children objects turn off as well.
Hope that helps!
Hey Travis,
it looks like my dodgy code was to blame I was trying to be too smart/(lazy) and not individually name every object and function to keep to seperate. I may have been trying to do something out of what Lenses was designed for :)