unity安卓打包之后物体颜色设置无效,变成粉红色,如图,求解决!!
Renderer render = cube.GetComponent<Renderer>();
render.material.color = Color.green;
unity安卓打包之后物体颜色设置无效,变成粉红色,如图,求解决!!
Renderer render = cube.GetComponent<Renderer>();
render.material.color = Color.green;
Renderer render = cube.GetComponent<Renderer>();
MaterialPropertyBlock propBlock = new MaterialPropertyBlock();
render.GetPropertyBlock(propBlock);
propBlock.SetColor("_Color", Color