上一页 1 2 3 4 5 6 ··· 18 下一页

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 阅读(95) 评论(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 阅读(35) 评论(0) 推荐(0) 编辑

2023年2月10日

unity VideoPlayer 视频静音

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

posted @ 2023-02-10 11:34 zqiang0803 阅读(175) 评论(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 阅读(68) 评论(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 阅读(690) 评论(0) 推荐(0) 编辑

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

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

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

2023年1月13日

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

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

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

2023年1月11日

unity 利用相机截图,可以截取UI,保存png格式,可用于签名抠图

摘要: public Camera cam; void Start() { StartCoroutine(CaptureAlphaCamera(cam,new Rect(0,0,1920,1080))); } #region 截取透明图 /// <summary> /// 3.对相机截图。 /// </su 阅读全文

posted @ 2023-01-11 13:21 zqiang0803 阅读(786) 评论(0) 推荐(0) 编辑

2022年12月30日

unity 动态创建RenderTexture,配合prefab 加载视频的时候 ,会出现视频画面不同步

摘要: Instantiate(gb,videos);这句话要放在最后 阅读全文

posted @ 2022-12-30 15:21 zqiang0803 阅读(75) 评论(0) 推荐(0) 编辑

2022年12月14日

unity 局域网内传送照片

摘要: 发送的电脑 using UnityEngine; using System.Collections; using System.Net; using System.Net.Sockets; using System.IO; using System; public class SendPhoto:M 阅读全文

posted @ 2022-12-14 17:17 zqiang0803 阅读(302) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 18 下一页

导航