初识UGUI

UGUI

幻灯片2.PNG

幻灯片3.PNG

幻灯片4.PNG

幻灯片5.PNG

幻灯片6.PNG

幻灯片7.PNG

幻灯片8.PNG

幻灯片9.PNG

幻灯片10.PNG

幻灯片11.PNG

幻灯片12.PNG

幻灯片13.PNG

幻灯片14.PNG

幻灯片15.PNG

幻灯片16.PNG

幻灯片17.PNG

幻灯片18.PNG

幻灯片19.PNG

幻灯片20.PNG

幻灯片21.PNG

幻灯片22.PNG

幻灯片23.PNG

幻灯片24.PNG

幻灯片25.PNG

幻灯片26.PNG

幻灯片27.PNG

幻灯片28.PNG

幻灯片29.PNG

幻灯片30.PNG

幻灯片31.PNG

幻灯片32.PNG

幻灯片33.PNG

幻灯片34.PNG
如何实现UGUI图片拖动
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using System;
public class uguiMove : MonoBehaviour,IBeginDragHandler,IEndDragHandler,IDragHandler,IDropHandler
{
public RectTransform rectrom;
public void OnBeginDrag(PointerEventData eventData)
{
Debug.Log("OnBeginDrag___");
}
public void OnEndDrag(PointerEventData eventData)
{
Debug.Log("onBeginDrag___");
}
public void OnDrag(PointerEventData eventData)
{
Debug.Log("OnDrag___"+eventData.position);
}
public void OnDrop(PointerEventData eventData)
{
Debug.Log("OnDop____");
}
}

tutu.png
网友评论