private void Awake() { Cursors.InitDefaultCursor(this.regularCursor, this.regularCursorHotspot); Cursors.InitCursor(CursorType.HAND, this.handCursor, this.handCursorHotspot); Cursors.InitCursor(CursorType.INPUT, this.inputCursor, this.inputCursorHotspot); Cursors.SwitchToDefaultCursor(); }
public void OnPointerEnter(PointerEventData eventData) { if (((this.cursorType == CursorType.HAND) && base.gameObject.IsInteractable()) || (this.cursorType != CursorType.HAND)) { Cursors.SwitchToCursor(this.cursorType); overObject = base.gameObject; } }
private void OnDisable() { if (overObject == base.gameObject) { overObject = null; Cursors.SwitchToDefaultCursor(); } }
private void UnhighlightLink(int linkIndex) { TMP_LinkInfo info = this.tmpText.textInfo.linkInfo[linkIndex]; string[] textArray1 = new string[] { "<u><link=", info.GetLinkID(), ">", info.GetLinkText(), "</link></u>" }; string newValue = string.Concat(textArray1); this.tmpText.text = this.tmpText.text.Replace(this.GetColoredLinkText(newValue), newValue); Cursors.SwitchToDefaultCursor(); }
private void HighlightLink(int linkIndex) { TMP_LinkInfo info = this.tmpText.textInfo.linkInfo[linkIndex]; string[] textArray1 = new string[] { "<u><link=", info.GetLinkID(), ">", info.GetLinkText(), "</link></u>" }; string oldValue = string.Concat(textArray1); this.tmpText.text = this.tmpText.text.Replace(oldValue, this.GetColoredLinkText(oldValue)); Cursors.SwitchToCursor(CursorType.HAND); }
public void OnPointerExit(PointerEventData eventData) { Cursors.SwitchToDefaultCursor(); }