I need to display instructions to my Unity Project and my employer would like them to display with bullet points (leading o, see the Formatting Buttons on the right when you ask or edit a question) at a fixed indentation. I have found nothing like this so far in GUILayout options. I need to use ScrollView because the instructions may be too large for the screen (especially if we deploy to tablets). I’m not even finding an easy way to have a fixed horizontal starting point so I can display a preceding lower case “o” as the bullet. Any suggestions? My pertinent code:
function Start() {
…
scrollPosition.x = 0;
scrollPosition.y = 0;
…
instructionText = instructionText + " Click 'Add Tower' to create another tower, then drag it to where you want it.";
instructionText = instructionText + " All towers must be in the radio net (i.e. each tower must be able to talk to at least one other tower) and should be on the AO (on the red).
“;
instructionText = instructionText + “Click ‘Check Results’ to see your solution in action. You can try as often as necessary.”;
instructionText = instructionText + " Use as many towers as necessary to fully cover the AO, but don’t waste resources by using too many towers.”;
instructionText = instructionText + " Towers need line of sight (LOS) to each other. Terrain may block signals.
";
instructionText = instructionText + "After each attempt, you’ll pass or receive more information. Good luck!
";
…
longString = instructionText;
}
function OnGUI() {
scrollPosition = GUILayout.BeginScrollView(
scrollPosition, GUILayout.Width(650), GUILayout.Height(450));
GUILayout.Label(longString, customStyle);
GUILayout.EndScrollView();
…
}
Thanks in advance,
Richard Aronson