Click here to Skip to main content
15,891,951 members

Comments by NoobZee (Top 2 by date)

NoobZee 20-May-22 11:57am View    
Thank you for your kind suggestion.
NoobZee 20-May-22 11:09am View    
Sire You misunderstood!
I am calling SetTopColor from another script called Block.
public void SetTopColor()
{
MeshRenderer topFace = transform.Find("Top").GetComponent<meshrenderer>();
topFace.material.color = Color.black;
}
While in foreach i am calling block variable of Type Block at position poS. Again Block is a collection of objects lying in my Editor Window and Block Script is already attached with multiple objects.

So, your objection about SetTopColor and Collection of Objects in foreach loop is due to limited information i provided in the thread, Maybe i should have provided all scripts here.