上一页 1 2 3 4 5 6 7 ··· 18 下一页
摘要: public class L16 : MonoBehaviour { public EventTrigger EventTrigger; // Start is called before the first frame update void Start() { //使用事件触发器 //1.拖脚本 阅读全文
posted @ 2025-04-05 17:55 cannedmint 阅读(9) 评论(0) 推荐(0)
摘要: public class L15 : MonoBehaviour { // Start is called before the first frame update void Start() { //常用事件接口 //IPointerEnterHandler - OnPointerEnter 指针 阅读全文
posted @ 2025-04-05 17:32 cannedmint 阅读(19) 评论(0) 推荐(0)
摘要: public class L14 : MonoBehaviour { // Start is called before the first frame update void Start() { //相关参数 //Caption Text 关联显示当前选择内容的文本组件 //Item Text 关 阅读全文
posted @ 2025-04-05 11:56 cannedmint 阅读(30) 评论(0) 推荐(0)
摘要: public class L13 : MonoBehaviour { // Start is called before the first frame update void Start() { //滑动块相关参数 //Size滑动块在条中的比例大小 //监听事件的两种方法 //1.拖脚本 //2 阅读全文
posted @ 2025-04-05 11:44 cannedmint 阅读(32) 评论(0) 推荐(0)
摘要: public class L12 : MonoBehaviour { // Start is called before the first frame update void Start() { //代码控制 Slider s=GetComponent<Slider>(); print(s.val 阅读全文
posted @ 2025-04-05 09:58 cannedmint 阅读(6) 评论(0) 推荐(0)
摘要: public class L11 : MonoBehaviour { // Start is called before the first frame update void Start() { //相关参数 //Content Type 输入模式 //Line Type //Single Lin 阅读全文
posted @ 2025-04-04 20:44 cannedmint 阅读(21) 评论(0) 推荐(0)
摘要: public class L10 : MonoBehaviour { // Start is called before the first frame update void Start() { //Toggle配合Toggle Group组件可制作单选框 //一般创建一个空对象作为父对象挂载To 阅读全文
posted @ 2025-04-04 20:13 cannedmint 阅读(15) 评论(0) 推荐(0)
摘要: public class L9 : MonoBehaviour { // Start is called before the first frame update void Start() { //相关参数 //Interactable 是否接受输入 //Transition 响应用户输入的过渡效 阅读全文
posted @ 2025-04-04 17:54 cannedmint 阅读(16) 评论(0) 推荐(0)
摘要: public class L8 : MonoBehaviour { // Start is called before the first frame update void Start() { //代码控制 RawImage raw =GetComponent<RawImage>(); raw.t 阅读全文
posted @ 2025-04-04 17:27 cannedmint 阅读(15) 评论(0) 推荐(0)
摘要: public class L7 : MonoBehaviour { // Start is called before the first frame update void Start() { //Horizontal Overflow 文本太宽无法放入矩形范围时的处理方法 //Wrap 文本内容 阅读全文
posted @ 2025-04-04 17:21 cannedmint 阅读(20) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 18 下一页