Hi, I need a little help with FindObjectsOfType. Im trying to find every rigidbody in my scene and change its drag, ive tried using the c# example from http://docs.unity3d.com/ScriptReference/Object.FindObjectsOfType.html but I keep getting varying errors. I don't usually ask people to write scripts for me but as this is such a short one I would appreciate it if anybody could help me out here. Thanks.
If you show your code and maybe an error, we could tell you what is wrong. The example they give in the doc is pretty accurate, that is why I'm suggesting this instead. Also, this may help us determine if there may be a better way to do this.
I prefer to use the generic method not described in that doc Code (CSharp): Rigidbody[] rigidbodies = FindObjectsOfType<Rigidbody>(); foreach(Rigidbody body in rigidbody){ body.drag = 0f; }