上一页 1 2 3 4 5 6 7 ··· 20 下一页

2023年4月28日

【Unity Shader编程】之十五 屏幕高斯模糊(Gaussian Blur)后期特效的实现

摘要: using UnityEngine; using System.Collections; //设置在编辑模式下也执行该脚本 [ExecuteInEditMode] //添加选项到菜单中 [AddComponentMenu("Learning Unity Shader/Lecture 15/Rapid 阅读全文

posted @ 2023-04-28 15:20 zqiang0803 阅读(401) 评论(0) 推荐(0)

2023年2月27日

Unity Prefab(预制体)一次性循环10个会得到同样的

摘要: IEnumerator Test1() { for(int i = 0;i < 5;i++) { GameObject gb = (GameObject)Resources.Load("Prefabs/Image"); gb.name = i.ToString() + "_cui"; allMove 阅读全文

posted @ 2023-02-27 16:22 zqiang0803 阅读(101) 评论(0) 推荐(0)

2023年2月22日

Unity 读取Json文件、创建Json文件

摘要: 1.储存在外部设置 2.Android的时候.json文件没法编辑,可以修改成.txt格式。WPS修改后再改回后缀名。 /// <summary> /// /storage/emulated/0/ Android 外置内存根目录 /// Application.persistentDataPath; 阅读全文

posted @ 2023-02-22 16:29 zqiang0803 阅读(352) 评论(0) 推荐(0)

2023年2月21日

Unity 获取后缀名

摘要: for(int i = 0;i < files.Length;i++) { if(files[i].Name.EndsWith(".meta")) { continue; } list.Add(files[i].ToString()); } 阅读全文

posted @ 2023-02-21 09:26 zqiang0803 阅读(125) 评论(0) 推荐(0)

2023年2月14日

unity Android 可后台替换图片

摘要: using System.Collections; using System.Collections.Generic; using System.IO; using UnityEngine; using UnityEngine.Networking; using UnityEngine.UI; us 阅读全文

posted @ 2023-02-14 13:27 zqiang0803 阅读(61) 评论(0) 推荐(0)

2023年2月10日

unity VideoPlayer 视频静音

摘要: standVideo.SetDirectAudioMute(0,true); 阅读全文

posted @ 2023-02-10 11:34 zqiang0803 阅读(314) 评论(0) 推荐(0)

2023年2月3日

unity Android路径的相关部分代码

摘要: using System; using System.Collections; using System.Collections.Generic; using System.IO; using UnityEditor; using UnityEngine; using UnityEngine.UI; 阅读全文

posted @ 2023-02-03 09:34 zqiang0803 阅读(80) 评论(0) 推荐(0)

2023年1月17日

unity 2D 物体跟随鼠标旋转 移动

摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; public class FollowMouse:MonoBehaviour { // Use this for initialization 阅读全文

posted @ 2023-01-17 10:09 zqiang0803 阅读(856) 评论(0) 推荐(0)

Unity 在2D中实现LookAt,跟随鼠标转动

摘要: Vector3 v = (target.position - transform.position).normalized; transform.right = v; 阅读全文

posted @ 2023-01-17 10:01 zqiang0803 阅读(182) 评论(0) 推荐(0)

2023年1月13日

Unity 动态加载图片出现红色问号

摘要: 因为图片必须是RGB格式的才可以 ,Cao!!! 阅读全文

posted @ 2023-01-13 09:40 zqiang0803 阅读(272) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 ··· 20 下一页

导航