UGUI:窗口限制以及窗口缩放
本文原创首发于以下网站: 博客园『优梦创客』的空间:https://www.cnblogs.com/raymondking123 优梦创客的官方博客:https://91make.top 优梦创客的游戏讲堂:https://91make.ke.qq.com 『优梦创客』的微信公众号:umaketop 您可以自由转载,但必须加入完整的版权声明 public class Scene : MonoBehaviour , IDragHandler , IPointerDownHandler { public RectTransform RtTransform ; public RectTransform RTParent ; Vector2 downpos ; Vector2 newpos ; public void OnPointerDown ( PointerEventData eventData ) { RectTransformUtility . ScreenPointToLocalPointInRectangle ( RtTransform , eventData . position , eventData . pressEventCamera , out downpos ); //print(downpos); } public void OnDrag (