IWindowFunction class for displaying credits. Also inherits from MonoBehaviour to expose credit data to UnityEditor when added as a component to the UI GameObject
More...
|
class | Credit |
| Serializable (exposed to UnityEditor) for holding creditation data More...
|
|
|
void | Awake () |
| Awake this instance. More...
|
|
void | Window (int id) |
| GUI Window function to display credits in a scroll view. More...
|
|
IWindowFunction class for displaying credits. Also inherits from MonoBehaviour to expose credit data to UnityEditor when added as a component to the UI GameObject
Definition at line 8 of file UI_Credits.cs.
void UI_Credits.Awake |
( |
| ) |
|
|
private |
void UI_Credits.Window |
( |
int |
id | ) |
|
|
private |
GUI Window function to display credits in a scroll view.
Definition at line 78 of file UI_Credits.cs.
79 if (GUILayout.Button(
"Close")) {
85 GUILayout.Label(
"The following resources were used in this project: ");
88 GUILayout.Label(c.name +
" by " + c.author,GUILayout.Width(
width-60f));
89 GUILayout.Label(c.description,GUILayout.Width(
width-60f));
90 if (GUILayout.Button(c.url,GUILayout.Width(
width-60f))) Application.OpenURL(c.url);
93 GUILayout.EndScrollView();
const string projectAbout
Project summary.
float width
The width of the window.
A utility class for strings used in this project.
Credit[] credits
Array of credits exposed and edited in the Unity Inspector
Vector2 UI_Credits._scrollPos = new Vector2() |
|
private |
Array of credits exposed and edited in the Unity Inspector
Definition at line 40 of file UI_Credits.cs.
float UI_Credits.width = 500f |
GUI.WindowFunction UI_Credits.windowFunction |
|
get |
Rect UI_Credits.windowRect |
|
getset |
string UI_Credits.windowTitle |
|
get |
The documentation for this class was generated from the following file: