![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Unity3d
文章平均质量分 59
walterCui
这个作者很懒,什么都没留下…
展开
-
初探unity中的ECS
ECS是一种软件架构模式,就像MVC一样。ECS最早在游戏《守望先锋》中提及到的。ECS具体是指实体(entity)、 组件(component)和系统(system):实体:实体是一个ID,它是一个唯一的标识符,用于标识一个对象,它本身不包含任何数据,只是一个ID,它的作用是用于标识一个对象,它的数据是由组件来提供的。组件:组件是一个数据结构,它包含了一些数据,用于描述一个对象的属性,组件是没有任何行为的,它只是一个数据结构。系统:主要用户逻辑处理,进行状态迁移。系统中不保留数据,且是无状态的。原创 2024-02-03 17:20:19 · 1946 阅读 · 0 评论 -
unity3d mask
Shader "Custom/Unlit Flat Circle v2" { Properties { _MainTex ("Main Texture", 2D) = "white" {} _Color ("Color", Color) = (1,1,1,1) _Distort("Distort", vector) = (0.5, 0翻译 2016-08-10 11:57:18 · 439 阅读 · 0 评论 -
Unity UIToolkit
unity UIToolkit原创 2022-08-25 23:24:39 · 2581 阅读 · 0 评论 -
Mac 安装appium
今天在mac环境下进行了appium的安装和配置。1、正确安装nodejs,brew install node2、使用npm安装appium,npm install -g appium3、安装appium-doctor,npm install -g appium-doctor4运行doctor检测,结果为:info AppiumDoctor ✔ The Node.js bi...原创 2019-09-23 16:19:12 · 358 阅读 · 0 评论 -
Mac 中安装 appium遇到错误selendroid setup files did not yet exist waiting
今天在mac中安装appium的时候,第一次没有按照文档安装导致报错:selendroid setup files did not yet exist waiting折腾了半天之后发现是我安装node的时候用的root用户安装的,而安装appium的时候用sudo,这样在执行node ./bin/install.js的时候会出现权限的问题。其实在安装文档中有所提到(Make sure y...原创 2019-09-23 15:46:56 · 618 阅读 · 0 评论 -
unity3d package 管理
unity2018之后使用了全新的package 管理工具。下图是全新package和以前的package的不同点(摘自https://blogs.unity3d.com/2018/05/09/unity-packages-life-cycle/)。 Asset Store Package New Package File .unitypackage Gi...原创 2019-09-19 13:55:07 · 3931 阅读 · 0 评论 -
YAML 格式初探
简单记录一下YAML的格式YAML中是一个缩紧来代表一个block的,使用 破折号和空格("- ")来代表数组,使用冒号和空格(": ")来代表map。举例如下数组:- Mark McGwire- Sammy Sosa- Ken Griffeymap:hr: 65 # Home runsavg: 0.278 # Batting averagerbi: 1...原创 2019-09-09 21:12:39 · 170 阅读 · 0 评论 -
unity3d job
unity C#中的Job system 允许我们编写与unity交互的多线程代码。在写多线程代码时会涉及到很多点:线程池、线程间切换、数据共享以及锁的问题,这些问题使我们很难写出高效安全的多线程代码。然后job system是通过创建job的方式然后又job system统一调用和管理,从而避免了让用户直接去编写多线程代码。 我们编写的job将会放到job qu...原创 2019-08-03 17:00:37 · 493 阅读 · 0 评论 -
二微矩阵碰撞检测
//左上(x,y) 右下(z,w).返回val2和val1是否发生碰撞,如果碰撞返回val2相对val1的位置 1上 2下 4右 8左. int test(Vector4 val1, Vector4 val2) { bool ret = true; if(val2.x > val1.x && val2.x > val1.z)原创 2017-02-24 19:16:30 · 861 阅读 · 0 评论 -
一个uv对应多个贴图
问题:2d横版游戏中的背景宽带为2屏,并且自动滚屏。解决方案:1.将背景分为两个plane来渲染,通过代码来控制plane的移动。此种方式需要额外的两个plane来做缓存。2.通过shader的uv来控制Shader "Custom/NewShader" { Properties { _MainTex ("Base (RGB)", 2D) =原创 2017-02-23 14:39:17 · 2315 阅读 · 0 评论 -
unity3d dll 热更新
char* ReadStringFromFile(constchar* pathName,int* size){FILE* file = fopen(pathName,"rb");int length =0;int readLength =0;char* outData;if (file ==NULL) re原创 2016-12-23 18:30:32 · 615 阅读 · 0 评论 -
unity 使用xcode5.1 launching iOS project via Xcode4 failed
unity在使用Xcode5.1时,build&run 会抛出异常的,zhe s原创 2014-05-16 09:00:57 · 3102 阅读 · 1 评论 -
Coroutines in Unity
Coroutines are not threads. Coroutines are not asynchronous.原创 2014-03-10 14:15:36 · 567 阅读 · 0 评论 -
unity lifecycle
转载 2013-12-13 18:05:04 · 2451 阅读 · 0 评论 -
EditorObjExporter
/*Based on ObjExporter.cs, this "wrapper" lets you export to .OBJ directly from the editor menu. This should be put in your "Editor"-folder. Use by selecting the objects you want to export, and转载 2013-09-24 17:19:54 · 2000 阅读 · 0 评论