Hello I have an odd problem,
I am creating players for a soccer game with dynamically created textures for jumpers
When they get created the Texture shows as white, but if i tick and untick the "enable Detail texture" flag it renders fine showing that the texture was created properly, (Pictures below to explain further)
I assume a redraw call gets made when you fiddle with the inspector but i'm unsure how to leverage that.
Thanks for reading, any advice is greatly appreciated :D
![132955-dyn2.png|1500x1024](upload://19V6pcNJIHBPbx8XV1ZhHpg2VDw.png)
Thank you so much for your quick reply, Worked perfectly!!! i have added the snippet below just in case anyone else has the issue i had. Debug.Log("Create a jumper"); GameObject cube = GameObject.CreatePrimitive(PrimitiveType.Cube); cube.transform.position = new Vector3(0,0, 0); cube.GetComponentInChildren<Renderer>().material = makeMat(pname,number); cube.GetComponentInChildren<MeshRenderer>().material.EnableKeyword("_TEX_ON"); Thanks again!!
– Jongjongleur