摘要:        
视频播放步骤 1.在场景中新建RawImage 2.在RawImage中添加Video Player组件 3.在Assets中新建Render Texture 4.将Render Texture分别放入Raw Image的Raw Image和Video Player组件中 5.点击视频资源,在Ins    阅读全文
posted @ 2023-03-11 15:06
gatran
阅读(223)
评论(0)
推荐(0)
        
            
        
        
摘要:        
AssetBundle 1.打包 将要打包的资源在inspector中的预览窗口下设置要打包在AssetBundles下的路径和后缀名(可任意取)。新建一个C#脚本,脚本内容如下: using System.IO; using UnityEditor; public class CreateAsse    阅读全文
posted @ 2023-03-11 15:04
gatran
阅读(43)
评论(0)
推荐(0)
        
            
        
        
摘要:        
协程方法 示例1 using System.Collections; using UnityEngine; public class Test : MonoBehaviour { private void Start() { StartCoroutine(MyCoroutine(2, "succes    阅读全文
posted @ 2023-03-11 15:03
gatran
阅读(17)
评论(0)
推荐(0)
        
            
        
        
摘要:        
音频播放 示例 using UnityEngine; public class Test : MonoBehaviour { AudioSource audio; void Start() { audio = transform.GetComponent<AudioSource>(); audio.    阅读全文
posted @ 2023-03-11 15:01
gatran
阅读(84)
评论(0)
推荐(0)
        
            
        
        
摘要:        
区域灯光的使用 先将Lighting>Mixed Lighting>Baked Global Illumin选项打开,并将Lighting>Lightmap Setting>Lightmapper设置为progressive GPU(preview),,创建一个区域光和一个其他类型(直线光、点光、和    阅读全文
posted @ 2023-03-11 14:59
gatran
阅读(23)
评论(0)
推荐(0)
        
            
        
        
摘要:        
动画的播放控制 1.通过组件控制 导入模型后,在Project中新建一个Animator Controller,双击Animator Controller,将模型内部的动画文件拖入到Animator Controller的场景中,再将Animator Controller拖入到模型的Animator    阅读全文
posted @ 2023-03-11 14:58
gatran
阅读(60)
评论(0)
推荐(0)
        
            
        
        
摘要:        
Unity基本介绍 1.窗口界面介绍与布局 1.1Scene界面 1.鼠标右键旋转视角 2.按住鼠标滚轮移动视角 3.旋转鼠标滚轮调整远近视角 4.按住右键并按WASD可以在场景中进行漫游 5.Pivot和Center Pivot表示轴心,在该状态下,点击父物体时坐标会落在父物体上,旋转时也是子物体    阅读全文
posted @ 2023-03-11 14:57
gatran
阅读(53)
评论(0)
推荐(0)
        
 
                    
                
 浙公网安备 33010602011771号
浙公网安备 33010602011771号