Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

C# cannot convert 'char' expression to type 'UnityEngine.Texture'

$
0
0
Hi everyone, I'm trying to use a for loop with one of my GUILayout.Buttons . But for some reason I'm getting this error cannot convert `char' expression to type `UnityEngine.Texture'. I don't know why it believes I'm trying to use a texture. for (int i = 0; i < 5; i++) if (GUILayout.Button("someButton"[i])){

Viewing all articles
Browse latest Browse all 171066

Trending Articles



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