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

what is best effective way to make string in to 3D GUI

$
0
0
1. No I'm not creating a unity GUI or whatever, because it doesn't work on Linux. all buttons are 0.0f width. 2. I haven't went doing this so no actual code can be provided when I'm stuck or whatever. just need a little guideline. what I've come across is: [Unity Q/A][1] - @fafase last answer. and I was thinking, making a character (not string) dictionary should I go this way: Dictionary GUIString = new Dictionary(); void Awake(){ GUIString.Add('a', gameObject); } OR should I go this way: GameObject[] GUIString1 = new GameObject[256]; GameObject SomeFunction (char c){ return GUIString1[c]; // if it can convert else I do integer in the middle and pass an integer. } OR would there be some more efficient way? ALSO should I wrap it to a class or structure? thing is on Linux 3D stuff seems to be working perfectly and that's what I'm aiming on. thanks in advance. [1]: http://answers.unity3d.com/questions/441852/convert-a-string-to-texture.html

Viewing all articles
Browse latest Browse all 171066

Trending Articles



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