代码改变世界

随笔档案-2019年05月

Unity C#

2019-05-05 10:58 by 法子, 514 阅读, 收藏, 编辑
摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; //要求该脚本绑定的游戏对象必须存在某个组件类型,如果游戏对象没有,会自动为其添加 [RequireComponent(typeof(Animator))] //[ExecuteInEditMode]//Edit Mode下就会运行代码... 阅读全文
点击右上角即可分享
微信分享提示