当前位置:网站首页>[Unity][ECS]学习笔记(一)
[Unity][ECS]学习笔记(一)
2022-06-28 09:50:00 【GrimRaider】
20220621
搞了3天,终于跑起来了一个System。
学习视频:
https://www.youtube.com/watch?v=ILfUuBLfzGI&list=PLzDRvYVwl53s40yP5RQXitbT--IRcHqba&index=1&t=122shttps://www.youtube.com/watch?v=ILfUuBLfzGI&list=PLzDRvYVwl53s40yP5RQXitbT--IRcHqba&index=1&t=122s【游戏开发】Unity ECS DOTS 教程 (合集)机翻!_哔哩哔哩_bilibilihttps://www.youtube.com/watch?v=ILfUuBLfzGI&list=PLzDRvYVwl53s40yP5RQXitbT--IRcHqba&index=1自带谷歌机翻后续会补充自动生成的英文字幕项目源代码下载地址:https://unitycodemonkey.com/video.php?v=ILfUuBLfzGI
https://www.bilibili.com/video/av93838467/?vd_source=b2a6377adfb8c1346aecd5a89bc3b7e2官方手册
Entities overview | Entities | 0.50.1-preview.2https://docs.unity3d.com/Packages/[email protected]/manual/index.htmlUnity版本:2020.3.30
Entity版本:0.51.0-privew.32
遇到的问题:
- 引入Entity包之后编译报错,缺少API啥的,一般是因为Unity版本不匹配,根据官方手册调整为对应版本就可以了,并不是版本越高越好,
- 添加了System之后,没有看到打印的log,原因是我一开始按照官方文档装了全套的包,没有按照学习视频里的提示,装了Netcode,导致在DefaultWorld中没有System生成,继承ComponentSystem会自动在Client和Server两个world里自动生成,但是因为对应world里没有符合条件的entity,Entities.ForEach 就会导致 Internal: JobTempAlloc has allocations that are more than 4 frames old - this is not allowed and likely a leak 警告,并且后续会不停的刷 Internal: deleting an allocation that is older than its permitted lifetime of 4 frames (age = 5) ,如果按学习视频里的方法添加System,注意不要把包 Netcode 导入工程。
论坛上的参考:
总结:
Unity版本最好使用2020.3.30,因为目前官方的例子都是这个版本,官方例子git如下
GitHub - Unity-Technologies/EntityComponentSystemSamplesContribute to Unity-Technologies/EntityComponentSystemSamples development by creating an account on GitHub.https://github.com/Unity-Technologies/EntityComponentSystemSamples初学者只引入需要的package,Netcode这种在没掌握基础前不要引入。
中国官方例子工程:
例子工程:https://gitee.com/grimraider/unity-ecsdotshttps://gitee.com/grimraider/unity-ecsdots
边栏推荐
- 异常的产生,及解决
- Flip CEP skip policy aftermatchskipstrategy Skippastlastevent() matched no longer matches the Bikeng Guide
- Huawei OSPF single region
- Multithreading concurrent parallel threaded process
- PMP考试重点总结四——规划过程组(2)
- 解析:去中心化托管解决方案概述
- Custom exception classes and exercises
- English translation plug-in installation of idea
- 布隆过滤器 课程研究报告
- PMP Exam key summary VI - chart arrangement
猜你喜欢
English translation plug-in installation of idea
Explain final, finally, and finalize
Application of X6 in data stack index management
解析:去中心化托管解决方案概述
Solve the problem that the value of the action attribute of the form is null when transferring parameters
Installing redis under Linux and windows (ultra detailed graphic tutorial)
小米旗下支付公司被罚 12 万,涉违规开立支付账户等:雷军为法定代表人,产品包括 MIUI 钱包 App
[happy Lantern Festival] guessing lantern riddles eating lantern festival full of vitality ~ (with lantern riddle guessing games)
我大抵是卷上瘾了,横竖睡不着!竟让一个Bug,搞我两次!
一文读懂 12种卷积方法(含1x1卷积、转置卷积和深度可分离卷积等)
随机推荐
函数的分文件编写
代理模式(Proxy)
PMP examination key summary VIII - monitoring process group (2)
多线程-并发并行-线程进程
abnormal
2022-06-27:给出一个长度为n的01串,现在请你找到两个区间, 使得这两个区间中,1的个数相等,0的个数也相等, 这两个区间可以相交,但是不可以完全重叠
接口自动化框架脚手架-利用反射机制实现接口统一发起端
Comprehensive evaluation of outline note taking software workflow: advantages, disadvantages and evaluation
手把手教你处理 JS 逆向之 SVG 映射
布隆过滤器 课程研究报告
Key summary IV of PMP examination - planning process group (2)
Sword finger offer | Fibonacci sequence
MySQL的开发环境和测试环境有什么区别??
Data visualization makes correlation analysis easier to use
Bron filter Course Research Report
QT signal and slot communication mechanism (when multiple windows communicate back and forth [parent and child windows])
卸载oracle报错
爬虫小操作
Django database operation and problem solving
PyGame game: "Changsha version" millionaire started, dare you ask? (multiple game source codes attached)