• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
wayne1984
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

2020年9月4日

Unity 在面板中直接选择Key
摘要: public KeyCode _key; 可以得到所以的Key在面板中选择 if (Input.GetKeyDown(_key)) { //当按下Key,button按钮被点击 _button.onClick.Invoke(); _animator.SetTrigger("IsDown"); Ins 阅读全文
posted @ 2020-09-04 17:43 wayne1984 阅读(191) 评论(0) 推荐(0)
 
Unity UI Image 环形进度条
摘要: UI Image 环形进度条 1 做一张环形PNG,导入Unity设置为Sprite; 2 UI创建 Image 修改 Image Type 修改为 Filled 3 脚本控制 FillAmount; public Image HpImage;//那个图 public float x;//变量,一般 阅读全文
posted @ 2020-09-04 17:08 wayne1984 阅读(669) 评论(0) 推荐(0)
 
Unity 随机Trigger动画
摘要: public string[]_AniName=new string[]{"animation1","animation2", "animation3","Foot1","Foot2","Foot3"}; int index = Random.Range(0, _AniName.Length); D 阅读全文
posted @ 2020-09-04 15:21 wayne1984 阅读(416) 评论(0) 推荐(0)
 
Untiy Animator.StringToHash
摘要: private int a = Animator.StringToHash("animation1"); animator.SetTrigger(a); 阅读全文
posted @ 2020-09-04 10:08 wayne1984 阅读(433) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3