update
This commit is contained in:
@@ -0,0 +1,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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user