Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
You are referring to a Block game object not the object being hit by the array. To change the object the raycast hits the refers touse the hit variable. This stores all info about the object including its material and colour.
You are referring to a Block game object not the object being hit by the array. To change the object the raycast hits the refers to the hit variable. This stores all info about the object including its material and colour
You are referring to a Block game object not the object being hit by the array. To change the object the raycast hits use the hit variable. This stores all info about the object including its material and colour.
You are referring to a Block game object not the object being hit by the array. To change the object the raycast hits the refers to the hit variable. This stores all info about the object including its material and colour