wartheking 1 nedēļu atpakaļ
vecāks
revīzija
3177b21ea8
2 mainītis faili ar 95 papildinājumiem un 168 dzēšanām
  1. 92 165
      Assets/Scene 1.unity
  2. 3 3
      Assets/Scripts/UI/Tools/TipShower.cs

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 92 - 165
Assets/Scene 1.unity


+ 3 - 3
Assets/Scripts/UI/Tools/TipShower.cs

@@ -12,11 +12,11 @@ public class TipShower : MonoBehaviour,IPointerEnterHandler,IPointerExitHandler
     public void OnPointerEnter(PointerEventData eventData)
     public void OnPointerEnter(PointerEventData eventData)
     {
     {
         currentShower = this;
         currentShower = this;
-        tips.anchoredPosition = this.GetComponent<RectTransform>().anchoredPosition;
+       // tips.anchoredPosition = this.GetComponent<RectTransform>().anchoredPosition;
         tips.gameObject.SetActive(true);
         tips.gameObject.SetActive(true);
         tips.GetComponentInChildren<Text>().text = data;
         tips.GetComponentInChildren<Text>().text = data;
-        LayoutRebuilder.ForceRebuildLayoutImmediate(tips.GetChild(0).GetComponent<RectTransform>()); ; // 强制重新计算布局
-        LayoutRebuilder.ForceRebuildLayoutImmediate(tips.GetComponent<RectTransform>()); // 强制重新计算布局
+        //LayoutRebuilder.ForceRebuildLayoutImmediate(tips.GetChild(0).GetComponent<RectTransform>()); ; // 强制重新计算布局
+        //LayoutRebuilder.ForceRebuildLayoutImmediate(tips.GetComponent<RectTransform>()); // 强制重新计算布局
     }
     }
     public static TipShower currentShower = null;
     public static TipShower currentShower = null;
     public void OnPointerExit(PointerEventData eventData)
     public void OnPointerExit(PointerEventData eventData)

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels