i have four numbers textures/material and four cube set random material cube but i don't know how to get number when click the any cub
If your textures are labelled "texture 1, texture 2, texture 3...." then you can use this: Code (csharp): renderer.material.mainTexture.name This will give you the name in a string format to tell you which texture is used.