I have followed the docs and read some posts and I still can’t nail how to change a sphere collider’s radius via script.
I have this:
obj.GetComponent(SphereCollider);
obj.collider.radius = 0.35;
… it will run on the Editor but it will not compile.
Instead it will prompt me:
'radius' is not a member of 'UnityEngine.Collider'
Any ideas?