04 2022 档案
摘要:
如下: using UnityEngine; using UnityEngine.UI; using OpenCvSharp; public class Circle_Text : MonoBehaviour { //このScriptはMainCameraにアタッチしてください public Ren
阅读全文

摘要:
前言 OpenCV Plus Unity 有关的教程实在很难找到,Opencv的有很多,但是在Unity上应用的相关教程很少,比如付费的OpenCV For Unity ,就已经很少了,目前经济有限,只能选择更加小众的OpenCV Plus Unity 国内甚至搜不到相关的概念,更别提学习教程了。真
阅读全文

摘要:
一、添加文本(UI -> text) 二、创建脚本(CountdownTimer) 第一种方法: 1、首先在方法外声明两个变量 private Text txtTimer; //存放组件的变量 public int second = 120; //倒计时时间120秒 2、在Start方法内获取文本组
阅读全文

摘要:
一、概念 二叉树(Binary tree)是树形结构的一个重要类型。许多实际问题抽象出来的数据结构往往是二叉树形式,即使是一般的树也能简单地转换为二叉树,而且二叉树的存储结构及其算法都较为简单,因此二叉树显得特别重要。二叉树特点是每个节点最多只能有两棵子树,且有左右之分 。 二叉树是n个有限元素的集
阅读全文

摘要:
如下: using UnityEngine; public class Test : MonoBehaviour { private string[] keyNames = new string[] { // 辅助键 "left shift", "right shift", "left ctrl",
阅读全文

摘要:
如下: //第一种:旋转了多少 //transform.Rotate(new Vector3(90, 0, 0) * Time.deltaTime); //transform.Rotate(0,25 * Time.deltaTime, 0, Space.World); //第二种: //transf
阅读全文

摘要:
如下: using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class OpenCameraOnUGUIOrGameObject : M
阅读全文
](https://img2022.cnblogs.com/blog/2795885/202204/2795885-20220411091306716-124769661.png)
摘要:
如下: #define ENABLE_UPDATE_FUNCTION_CALLBACK #define ENABLE_LATEUPDATE_FUNCTION_CALLBACK #define ENABLE_FIXEDUPDATE_FUNCTION_CALLBACK using System; usi
阅读全文

摘要:
1、创建RamImage、材质和渲染器纹理 2、单击刚才新建的材质、将Shader改为Unilt/Texture,并将纹理拖到箭头处 3、建立一个平面和一个立方体,建一个Rotate_s脚本附加到立方体上使其旋转 using System.Collections; using System.Coll
阅读全文

摘要:
1、官方资源商店下载 2、unity中导入 (1)新建一个场景,并删除主相机 (2)在包资源管理器导入包 (3)在场景添加几个物体 (4)找到导入的包,拖入以下3个物体到场景 3、设置第一人称控制器 将1拖到2处(Follow) 完成
阅读全文

摘要:如下: void Update() { //识别键盘输入 //键盘A键按住 //第一种方式 "a" 必须是小写字母 if (Input.GetKey("a")) { Debug.Log("a"); } //第二种方式 KeyCode的枚举类型 if (Input.GetKey(KeyCode.A))
阅读全文
摘要:
点击UI界面摁按钮,实现对应移动等功能 private void Update() { time = Time.time; if(time_go == 1) { this.transform.position += Vector3.forward * Time.deltaTime; } } priv
阅读全文

摘要:
建立一个脚本名称为:Move(与脚本内命名空间一致) using System.Collections; using System.Collections.Generic; using UnityEngine; public class Move : MonoBehaviour { public T
阅读全文

摘要:
一、栈(Stack)的介绍 栈(stack)又名堆栈,它是一种运算受限的线性表。限定仅在表尾进行插入和删除操作的线性表。这一端被称为栈顶,相对地,把另一端称为栈底。向一个栈插入新元素又称作进栈、入栈或压栈,它是把新元素放到栈顶元素的上面,使之成为新的栈顶元素;从一个栈删除元素又称作出栈或退栈,它是把
阅读全文

摘要:
一、说明 所用QT版本:5.9.1 电脑配置:win10,64位系统 调用的是编译好的:OpenCV-MinGW-Build-4.1.0(点击链接进码云仓库) 在大学期间,由于项目需求需要用到QT+opencv进行编程。在网上看了一下,有很多介绍配置的方法的文章,大致有两种,一种是需要使用CMake
阅读全文
