UI,制作摇杆 代码
摘要:using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEditor.UI;using UnityEngine.EventSystems; public class Joystick
阅读全文
posted @
2022-01-22 23:50
月光之下
阅读(100)
推荐(0) 编辑
UI--鼠标操作事件
摘要:鼠标操作事件接口需要先引入命名空间: using UnityEngine.EventSystems; 鼠标进入 接口:IPointerEnterHandler 回调函数:void OnPointerEnter(PointerEventData eventData) 鼠标离开 接口:IPointerE
阅读全文
posted @
2022-01-21 16:18
月光之下
阅读(92)
推荐(0) 编辑