I was having a bit of trouble with this code -
var TestColor : Color;
function Start () {
var MeshFilterComponent = GetComponent(MeshFilter)as MeshFilter;
var Meshy = MeshFilterComponent.mesh;
Meshy.colors = TestColor;
}
I keep getting this error
Cannot convert ‘UnityEngine.Color’ to ‘(UnityEngine.Color)’
is it just me or does that error seem a little strange :?
Anyone know ho to get that working?
Thanks
Pete