Hi,
I would like to know, why the compiler keeps complaining
Assets/Scripts/CombatBehaviour.cs(29,47): error CS1061: Type `UnityEngine.Collider[]' does not contain a definition for`length' and no extension method `length' of type`UnityEngine.Collider[]' could be found (are you missing a using directive or an assembly reference?)
private Collider[] rangeCollider;
public int range;
//
rangeCollider = Physics.OverlapSphere(transform.position, range);
int i = 0;
for (i = 0; i < rangeCollider.length; i++)
{
print(rangeCollider*);*
*}*
*```*
*<p>doesn't matter whether i declare rangeCollider as Collider or Collider[]. I know C# is very strict with its types, but if it has something to do with that, which type should I use? Or is it sth. completely different I'm missing here?</p>*
*<p>thanks in advance</p>*