Quantcast
Channel: Questions in topic: "dynamically"
Viewing all articles
Browse latest Browse all 152

Unity Meshes for C# generated objects

$
0
0
Hi I was wondering if anyone could help me with a problem I've got involving generating 3D text using C# script included in the class definition textM.name = inTarget.Name; textM.AddComponent(typeof(TextMesh)); Defined within the constructor text = (TextMesh)textM.GetComponent(typeof(TextMesh)); newMat = (Material)Resources.Load(@"material.mat", typeof(Material)); text.renderer.material = newMat; No matter what material I use or how I seem to load it the text appears pink (as well as any primitives which use the same material) Thank you for your time in advance,

Viewing all articles
Browse latest Browse all 152

Latest Images

Trending Articles



Latest Images

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