i have this wall of cubes, like a hundred of them, and their rigidbody mass is all 1. I want to make it all 0.01. Is there a way to do that?
Make them all children of an empty game object and attach this script to the parent(empty gamobject).
@script ExecuteInEditMode()
var mass:float; //in inspector change this to 0.01 or whatever you want.
function Update(){
for(var child:Transform in transform){
child.gameObject.rigidbody.mass = mass;
}
}
the moment you type in a new mass value it should automatically change all.