Quantcast
Channel: Latest Questions by frogsbo
Viewing all articles
Browse latest Browse all 90

how to color programatically created plane?

$
0
0
i have these lines to create a plane, and then i attempt to place a texture on it in game, and to change the color, but it stays dark grey even with blue texture on it. zfightingplane = GameObject.CreatePrimitive(PrimitiveType.Plane); zfightingplane.transform.localScale = Vector3(3000, 0, 3000); zfightingplane.transform.position = Vector3(0, -150, 0); DestroyImmediate(zfightingplane.collider); how do i make it blue?

Viewing all articles
Browse latest Browse all 90

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>