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

2020年9月5日

Untiy 协程
摘要: public class XXX : MonoBehaviour { // Update is called once per frame void Update () { StartCoroutine(load()); //这里是加载执行类,注意使用的是StartCoroutine } // // 阅读全文
posted @ 2020-09-05 10:47 wayne1984 阅读(103) 评论(0) 推荐(0)
 
 

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)
 
 

2020年9月3日

Unity 特效是否对着摄像机设置
摘要: renderer--render alignment 设置为Local 阅读全文
posted @ 2020-09-03 20:24 wayne1984 阅读(460) 评论(0) 推荐(0)
 
Unity 克隆成为目标的子物体
摘要: GameObject a = Instantiate(sfx_a, sfxP_a.transform.position, sfxP_a.transform.rotation); a.transform.parent = sfxP_a.transform; 阅读全文
posted @ 2020-09-03 19:30 wayne1984 阅读(476) 评论(0) 推荐(0)
 
UGUI面板中特效显示解决方案
摘要: UGUI面板中特效显示解决方案 问题 在ugui使用中发现制作的特效没办法在ugui面板中显示,对particleSystem进行了各种设置包括修改层级等等,都无法显示。 解决方案 可以发现ugui没有像ngui那样的UICamera,这样我们可以尝试自己添加个UICamera去进行显示,但是通常创 阅读全文
posted @ 2020-09-03 14:00 wayne1984 阅读(484) 评论(0) 推荐(0)
 
 

2020年9月2日

unity Random.Range随机
摘要: time = Random.Range(5d,12f); 阅读全文
posted @ 2020-09-02 10:03 wayne1984 阅读(1145) 评论(0) 推荐(0)
 
 

2020年9月1日

获取Tag,修改Tag
摘要: GameObject mobj = GameObject . FindGameObjectWithTag(“1”);找到Tag名字为1的obj mobj.tag=“2”;给他改名为2 阅读全文
posted @ 2020-09-01 15:19 wayne1984 阅读(333) 评论(0) 推荐(0)
 
 
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页

公告


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