上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
摘要: 1.问题 使用videoplayer播放视频,切换视频的时候会显示上一个视频的最后一帧 解决办法 videoplayer用了targenTexture ,释放一下视频,感觉是有缓存, 可以在视频关闭的时候加入下列代码 public VideoPlayer vidoPlayer; public voi 阅读全文
posted @ 2021-09-18 10:36 剑起苍穹 阅读(1145) 评论(0) 推荐(0) 编辑
摘要: 退出系统的时候会弹出来,ALT+f4也可以弹出来 直接上代码吧 using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; using System; using 阅读全文
posted @ 2021-09-15 14:32 剑起苍穹 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 1.先上效果图 这是 一个摄像头的模型,线框的颜色是可以修改的, 下面是插件的链接:插件下载 阅读全文
posted @ 2021-09-13 17:28 剑起苍穹 阅读(772) 评论(0) 推荐(0) 编辑
摘要: 1. UMP插件下载地址: https://download.csdn.net/download/qq_42603590/21840947 下载导入即可,里面有demo可学习 首先贴一下海康的rtsp协议地址: rtsp://[username]:[password]@[ip]:[port]/[co 阅读全文
posted @ 2021-09-10 17:31 剑起苍穹 阅读(5038) 评论(0) 推荐(0) 编辑
摘要: 简单记录一下 1. 物体是这样的 子物体一个开启两个关闭 (孙物体是全部关闭的) 遍历所有的子物体以及孙物体,并且遍历包含本身 foreach (var item in transform.GetComponentsInChildren<Transform>()) { Debug.Log(item. 阅读全文
posted @ 2021-09-06 12:43 剑起苍穹 阅读(910) 评论(0) 推荐(0) 编辑
摘要: 效果图: shader 代码 Shader "My/WaveDiffusion" { Properties { //shader放一张图片,图片需要与要显示模型上材质球上图片一致,不放没有效果, _MainTex("Texture", 2D) = "white" {} } SubShader { C 阅读全文
posted @ 2021-08-31 10:17 剑起苍穹 阅读(2462) 评论(5) 推荐(0) 编辑
摘要: 1.简单记录一下,不喜勿喷 首先下载DoTween插件 直接上代码,代码不多,好几个动画放一起,一起播放 using System.Collections; using System.Collections.Generic; using UnityEngine; using DG.Tweening; 阅读全文
posted @ 2021-08-25 11:04 剑起苍穹 阅读(546) 评论(0) 推荐(0) 编辑
摘要: 1.把脚本挂在text上调节颜色即可,废话不多说,直接上 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /// <summary> /// ** 阅读全文
posted @ 2021-08-24 14:26 剑起苍穹 阅读(884) 评论(0) 推荐(0) 编辑
摘要: 1.字典的类型 public class userscore { public List<string> fen; //分数 public List<string> time; //时间 } public Dictionary<string, userscore> DicScore = new Di 阅读全文
posted @ 2021-07-27 13:30 剑起苍穹 阅读(13746) 评论(0) 推荐(0) 编辑
摘要: 1.API GetSiblingIndex(); Gets the sibling index 直接挂到 四个按钮上 即可看到每一个按钮的索引 (也就是Canvas下面有几个子物体 索引从0开始) 代码: using System.Collections; using System.Collecti 阅读全文
posted @ 2021-07-26 13:30 剑起苍穹 阅读(1974) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
/*鼠标点击特效*/