I want to keep my hit.colliders in one big List<>, and I tried doing following but won’t work…
public List<RaycastHit> selected = new List<RaycastHit>();
Also, I’d need to do some looping through, it, and again, following code wouldn’t work:
for (int i = 0; i < selected.Count; i++)
selected*.GetComponent<XXX>().xxxx = xxxx;*
Thanks!
You need a list of RaycastHit.
List<RaycastHit> hits = new List<RaycastHit>();
Oh…ha…my bad. You need a list of Type Collider!
List<Collider> colliders = new List<Collider>();
Wow…I can’t read sometime.