Beispiel #1
0
    public void OnPointerEnter(PointerEventData eventData)
    {
        GameObject go = GameObjectExtension.Create(TalentDescGO, TalentFrameGO);

        desc = go;
        go.transform.Find("desc").GetComponent <TextMeshProUGUI>().text = info.Desc;
        Rect rect = this.GetComponent <RectTransform>().rect;

        go.transform.localPosition = new Vector3(transform.localPosition.x + rect.width / 2 + 10, transform.localPosition.y + rect.height / 2);
    }