色をランダムに変える

gameObject.renderer.material.color = new Color(Random.value, Random.value, Random.value, 1.0f);

タグ:

unity
最終更新:2015年04月01日 23:37