2021
04-27
04-27
unity 鼠标移入弹出UI的操作
外部调用show和Hide方法usingDG.Tweening;usingUnityEngine;usingUnityEngine.UI;publicclassShowInfo:MonoBehaviour{privatebool_isshowing=false;publicCanvasCanvas;//UsethisforinitializationvoidStart(){Hide();}//UpdateiscalledonceperframevoidUpdate(){}publicvoidHide(){transform.DOScale(Vector3.zero,0.3f);...
继续阅读 >