i need a function that applies the same operation to multiple elements (imagine a list of 20 gameObjects that must be deactivated)… i know it’s simple but i’m new to JScript!
Unity reference is only about Unity-specific classes, enumerators and attributes, but nothing about basic JScript sintax (for instance: how to make if/else conditions). Does anybody have any suggestion about a valid JS-sintax help website?
if your gameobjects are all parented by one you just have to call the parent with SetActiveRecursively(false). But to understand the syntax and how code is organized in Unity I suggest to do the Lerpz tutorial (I think it`s called first person tutorial or something like this).