This commit is contained in:
2026-06-11 22:49:50 +07:00
parent 458c338b27
commit e85e66002f
4105 changed files with 1435727 additions and 11 deletions

View File

@@ -0,0 +1,21 @@
using UnityEngine;
namespace Pathfinding.Examples {
/// <summary>Activates a GameObject when the cursor is over this object.</summary>
[HelpURL("https://arongranberg.com/astar/documentation/stable/highlightonhover.html")]
public class HighlightOnHover : VersionedMonoBehaviour {
public GameObject highlight;
void Start () {
highlight.SetActive(false);
}
public void OnMouseEnter () {
highlight.SetActive(true);
}
public void OnMouseExit () {
highlight.SetActive(false);
}
}
}