Tanoda
InspectorHelpObject.cs
Go to the documentation of this file.
2
4{
5 internal class InspectorHelpObject
6 {
7 private InspectorHelpObject()
8 { }
9
10 public static InspectorStackEntryBase Create()
11 {
12 var obj = new InspectorHelpObject();
13 return new InstanceStackEntry(obj, "Inspector Help");
14 }
15
16 public string Help1 = "This window displays contents of game classes in real time. " +
17 "You can go deeper by clicking on the buttons with member names on the left (here it's 'Help1'), " +
18 "and in some cases you can edit the data (try clicking on this text and typing)." +
19 "To apply changes you have to click outside of the field.";
20
21 public string Help2 = "When you go deeper you can return to the original class by clicking on the history list above.";
22
23 public string Help3 = "On the far left you can see the type that a member holds. In this case this is a string. Only some types can be edited." +
24 "You can copy the value even if it can't be edited.";
25
26 public string Help4 = "You can run methods by clicking their names on the list. Try clicking on GetHashCode below to run it. " +
27 "Return value will appear. If a class is returned by the method click the method's name to open it (try S/Create method below).";
28 public string Help5 = "WARNING - Running methods arbitraliy can have unforeseen consequences! You might even crash the game in some cases!";
29
30 public string Help6 = "If something goes wrong while getting a member's value, you will see an EXCEPTION or ERROR message in the value field." +
31 "Usually you can click on the member's name again to view details of the error.";
32
33 public string Help7 = "Above you can find various objects to display in the inspector. " +
34 "WARNING - If you search a heavily populated scene, you will get A LOT of results. Your FPS will drop, that's normal.";
35
36 public string Help8 = "'IS ENUMERABLE' means that opening the member will give you anywhere from 0 to infinitely many values. They might even be generated as you view them. " +
37 "If the number of values is known, it will be displayed instead of this text.";
38
39 public string Help9 = "If REPL is supported (the C# command prompt), you can pull and push object to and from inspector by using the 'geti()' and 'set(obj)' commands. Type 'help' in REPL for more info.";
40
41 public static string HelpS = "If a member name has an S/ in front of it, it means that this is a static member. It will be the same in all instances of an object.";
42
43 public string HelpTabs = "Right click on any member to open it in a tab. Right click a tab to close it.";
44 }
45}