随笔分类 -  Unity3D

Unity3D开发相关问题
摘要:首先确保你设置的参数动作名称与实际动作名称一致,注意大小写 其次点开动画控制器,查看你自己设置的bool值名称是否与动画动作名称一致 总之以下两点选择或设置的名称和对象必须一致: Motion所选择的动画 代码中设置的名称 图片右键新窗口打开大图 1 using System.Collections 阅读全文
posted @ 2020-09-04 09:38 伊凡晴天 阅读(9183) 评论(1) 推荐(0) 编辑
摘要:添加UI及组件: Hierarchy面板下右键UI添加 Canvas(一级层) Panel(二级层) Panel下添加组件Scroll Rect 属性: Content: 选择Text文本 Horizontal: 左右滚动 自由选择 Vertical: 上下滚动 自由选择 Movement Type 阅读全文
posted @ 2020-09-02 20:24 伊凡晴天 阅读(2122) 评论(2) 推荐(1) 编辑
摘要:1 using System.Collections; 2 using System.Collections.Generic; 3 using System.Diagnostics; 4 using UnityEngine; 5 using UnityEngine.UI; 6 7 8 public 阅读全文
posted @ 2020-09-01 21:45 伊凡晴天 阅读(1322) 评论(0) 推荐(0) 编辑
摘要:一:准备视频 Uinty3D常用视频格式: mov、.mpg、.mpeg、.mp4、.avi .asf 如果都不识别,试试转换成ogv格式 转换完成之后,将视频素材文件拖入Uinty Assets文件夹内 二:创建UI及添加组件 ①右键Assets文件夹或任意文件夹→Create→Render Te 阅读全文
posted @ 2020-08-31 17:35 伊凡晴天 阅读(1703) 评论(0) 推荐(1) 编辑
摘要:1 using System; 2 using System.Collections; 3 using System.Collections.Generic; 4 using UnityEngine; 5 using UnityEngine.UI; 6 7 public class ExitGame 阅读全文
posted @ 2020-08-30 14:25 伊凡晴天 阅读(13515) 评论(0) 推荐(1) 编辑
摘要:1 using UnityEngine; 2 using System.Collections; 3 using UnityEngine.UI; 4 using UnityEngine.SceneManagement; 8 public class LoadingGame : MonoBehavio 阅读全文
posted @ 2020-08-29 23:20 伊凡晴天 阅读(709) 评论(0) 推荐(0) 编辑
摘要:1 using UnityEngine; 2 using UnityEngine.EventSystems; 3 using UnityEngine.UI; 4 5 public class LoginMoveWithMouse : MonoBehaviour, IDragHandler, IPoi 阅读全文
posted @ 2020-08-29 14:55 伊凡晴天 阅读(1137) 评论(1) 推荐(1) 编辑
摘要:1 public class CameraMove : MonoBehaviour { 2 private Camera c; 3 private float mouseCenter; 4 private int maxView = 120; 5 private int minView = 10; 阅读全文
posted @ 2020-08-25 13:56 伊凡晴天 阅读(5859) 评论(0) 推荐(0) 编辑
摘要:1 public class CameraMove : MonoBehaviour { 2 private Camera c; 3 private float rotateSpeed = 10; 4 5 private void Start() { 6 c = this.GetComponent<C 阅读全文
posted @ 2020-08-24 16:00 伊凡晴天 阅读(1739) 评论(0) 推荐(1) 编辑
摘要:1 public class MonsterMove : MonoBehaviour { 2 private float rotateSpeed = 1.0f; 3 public Transform t; 4 private float MoveSpeed = 1.0f; 5 6 7 8 //当进入 阅读全文
posted @ 2020-08-22 17:37 伊凡晴天 阅读(840) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示