1、生成button 2、新建脚本ButtonListener using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using