I’m currently having trouble figuring out how to replace certain text in my GUI with a button. I’m parsing it out correctly, and getting the correct dimensions, but I can’t for the life of me figure out how to find the X and Y coordinate of the first character that I’m parsing out. Any help or point in the right direction would be greatly appreciated.
Resolved~
Result: http://dl.dropbox.com/u/18867763/Unity/StoryTeller/WebPlayer/WebPlayer.html
Code
var buttonLocationRect =
Engine.Skin.textArea.GetCursorPixelPosition(Engine.BoxRect), new GUIContent(infoString),
infoString.IndexOf(‘<’));