blob: f771b84998795ca5cc570c3d03fa681a604aa0d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
using UnityEngine;
namespace Pathfinding.Examples {
[ExecuteInEditMode]
[HelpURL("https://arongranberg.com/astar/documentation/stable/documentationbutton.html")]
public class DocumentationButton : MonoBehaviour {
public string page;
const string UrlBase = "https://arongranberg.com/astar/docs/";
#if UNITY_EDITOR
void OnGUI () {
if (GUI.Button(new Rect(Screen.width - 250, Screen.height - 60, 240, 50), "Example Scene Documentation")) {
Application.OpenURL(UrlBase + page + ".html");
}
}
#endif
}
}
|