using SickscoreGames.HUDNavigationSystem;
public class CustomTransformCallbackScript : MonoBehaviour
public void OnIndicatorEnterRadius (HUDNavigationElement element, NavigationElementType type)
ShowCustomIndicatorTransform(element, type, true);
public void OnIndicatorLeaveRadius (HUDNavigationElement element, NavigationElementType type)
ShowCustomIndicatorTransform(element, type, false);
void ShowCustomIndicatorTransform (HUDNavigationElement element, NavigationElementType type, bool visible)
// we're only interested in indicator events
if (!type.Equals(NavigationElementType.Indicator))
// check if indicator exists
if (element.Indicator != null)
// show/hide our custom icon, if it exists
Transform customIcon = element.Indicator.GetCustomTransform("customIcon");
customIcon.gameObject.SetActive(visible);