# Unity.Collections
A C# collections library providing data structures that can be used in jobs, and
optimized by Burst compiler.
### Package CI Summary
[![](https://badge-proxy.cds.internal.unity3d.com/08bfbf8f-d0fc-4779-99bc-c492b6ac1c35)](https://badges.cds.internal.unity3d.com/packages/com.unity.collections/build-info?branch=master) [![](https://badge-proxy.cds.internal.unity3d.com/2d498c15-1aa6-41cf-aa34-b03b982e79ea)](https://badges.cds.internal.unity3d.com/packages/com.unity.collections/dependencies-info?branch=master) [![](https://badge-proxy.cds.internal.unity3d.com/52225b3e-e38b-4036-981d-8cb69c4ad20e)](https://badges.cds.internal.unity3d.com/packages/com.unity.collections/dependants-info) ![ReleaseBadge](https://badge-proxy.cds.internal.unity3d.com/5352b6f1-8596-433e-be1d-89f81a7fe619) ![ReleaseBadge](https://badge-proxy.cds.internal.unity3d.com/28dde859-48bb-4aa1-a1d0-a5a1d89885d5)
## Documentation
https://docs.unity3d.com/Packages/com.unity.collections@0.14/manual/index.html
## Data structures
The Unity.Collections package includes the following data structures:
Data structure | Description | Documentation
----------------------- | ----------- | -------------
`BitField32` | Fixed size 32-bit array of bits. | [Documentation](https://docs.unity3d.com/Packages/com.unity.collections@0.14/api/Unity.Collections.BitField32.html)
`BitField64` | Fixed size 64-bit array of bits. | [Documentation](https://docs.unity3d.com/Packages/com.unity.collections@0.14/api/Unity.Collections.BitField64.html)
`NativeBitArray` | Arbitrary sized array of bits. | [Documentation](https://docs.unity3d.com/Packages/com.unity.collections@0.14/api/Unity.Collections.NativeBitArray.html)
`UnsafeBitArray` | Arbitrary sized array of bits, without any thread safety check features. | [Documentation](https://docs.unity3d.com/Packages/com.unity.collections@0.14/api/Unity.Collections.LowLevel.Unsafe.UnsafeBitArray.html)
`NativeHashMap` | Unordered associative array, a collection of keys and values. | [Documentation](https://docs.unity3d.com/Packages/com.unity.collections@0.14/api/Unity.Collections.NativeHashMap-2.html)
`UnsafeHashMap` | Unordered associative array, a collection of keys and values, without any thread safety check features. | [Documentation](https://docs.unity3d.com/Packages/com.unity.collections@0.14/api/Unity.Collections.LowLevel.Unsafe.UnsafeHashMap-2.html)
`NativeHashSet` | Set of values. | [Documentation](https://docs.unity3d.com/Packages/com.unity.collections@0.14/api/Unity.Collections.NativeHashSet-1.html)
`UnsafeHashSet` | Set of values, without any thread safety check features. | [Documentation](https://docs.unity3d.com/Packages/com.unity.collections@0.14/api/Unity.Collections.LowLevel.Unsafe.UnsafeHashSet-1.html)
`NativeList` | An unmanaged, resizable list. | [Documentation](https://docs.unity3d.com/Packages/com.unity.collections@0.14/api/Unity.Collections.NativeList-1.html)
`UnsafeList` | An unmanaged, resizable list, without any thread safety check features. | [Documentation](https://docs.unity3d.com/Packages/com.unity.collections@0.14/api/Unity.Collections.LowLevel.Unsafe.UnsafeList-1.html)
`NativeMultiHashMap` | Unordered associative array, a collection of keys and values. This container can store multiple values for every key. | [Documentation](https://docs.unity3d.com/Packages/com.unity.collections@0.14/api/Unity.Collections.NativeMultiHashMap-2.html)
`UnsafeMultiHashMap` | Unordered associative array, a collection of keys and values, without any thread safety check features. This container can store multiple values for every key. | [Documentation](https://docs.unity3d.com/Packages/com.unity.collections@0.14/api/Unity.Collections.LowLevel.Unsafe.UnsafeMultiHashMap-2.html)
`NativeStream` | A deterministic data streaming supporting parallel reading and parallel writing. Allows you to write different types or arrays into a single stream. | [Documentation](https://docs.unity3d.com/Packages/com.unity.collections@0.14/api/Unity.Collections.NativeStream.html)
`UnsafeStream` | A deterministic data streaming supporting parallel reading and parallel writings, without any thread safety check features. Allows you to write different types or arrays into a single stream. | [Documentation](https://docs.unity3d.com/Packages/com.unity.collections@0.14/api/Unity.Collections.LowLevel.Unsafe.UnsafeStream.html)
`NativeReference` | An unmanaged, reference container. | [Documentation](https://docs.unity3d.com/Packages/com.unity.collections@0.14/api/Unity.Collections.NativeReference-1.html)
`UnsafeAppendBuffer` | An unmanaged, untyped, buffer, without any thread safety check features. | [Documentation](https://docs.unity3d.com/Packages/com.unity.collections@0.14/api/Unity.Collections.LowLevel.Unsafe.UnsafeAppendBuffer.html)
`UnsafeRingQueue` | Fixed-size circular buffer, without any thread safety check features. | [Documentation](https://docs.unity3d.com/Packages/com.unity.collections@0.14/api/Unity.Collections.LowLevel.Unsafe.UnsafeRingQueue-1.html)
`UnsafeAtomicCounter32` | 32-bit atomic counter. | [Documentation](https://docs.unity3d.com/Packages/com.unity.collections@0.14/api/Unity.Collections.LowLevel.Unsafe.UnsafeAtomicCounter32.html)
`UnsafeAtomicCounter64` | 64-bit atomic counter. | [Documentation](https://docs.unity3d.com/Packages/com.unity.collections@0.14/api/Unity.Collections.LowLevel.Unsafe.UnsafeAtomicCounter64.html)
[...](https://docs.unity3d.com/Packages/com.unity.collections@0.14/manual/index.html)
The items in this package build upon the [NativeArray<T0>](https://docs.unity3d.com/ScriptReference/Unity.Collections.NativeArray_1),
[NativeSlice<T0>](https://docs.unity3d.com/ScriptReference/Unity.Collections.NativeSlice_1),
and other members of the Unity.Collections namespace, which Unity includes in
the [core module](https://docs.unity3d.com/ScriptReference/UnityEngine.CoreModule).
## Notation
`Native*` container prefix signifies that containers have debug safety mechanisms
which will warn users when a container is used incorrectly in regard with thread-safety,
or memory management. `Unsafe*` containers do not provide those safety warnings, and
the user is fully responsible to guarantee that code will execute correctly. Almost all
`Native*` containers are implemented by using `Unsafe*` container of the same kind
internally. In the release build, since debug safety mechanism is disabled, there
should not be any significant performance difference between `Unsafe*` and `Native*`
containers. `Unsafe*` containers are in `Unity.Collections.LowLevel.Unsafe`
namespace, while `Native*` containers are in `Unity.Collections` namespace.
## Determinism
Populating containers from parallel jobs is never deterministic, except when
using `NativeStream` or `UnsafeStream`. If determinism is required, consider
sorting the container as a separate step or post-process it on a single thread.
## Known Issues
All containers allocated with `Allocator.Temp` on the same thread use a shared
`AtomicSafetyHandle` instance. This is problematic when using `NativeHashMap`,
`NativeMultiHashMap`, `NativeHashSet` and `NativeList` together in situations
where their secondary safety handle is used. This means that operations that
invalidate an enumerator for either of these collections (or the `NativeArray`
returned by `NativeList.AsArray`) will also invalidate all other previously
acquired enumerators. For example, this will throw when safety checks are enabled:
```
var list = new NativeList<int>(Allocator.Temp);
list.Add(1);
// This array uses the secondary safety handle of the list, which is
// shared between all Allocator.Temp allocations.
var array = list.AsArray();
var list2 = new NativeHashSet<int>(Allocator.Temp);
// This invalidates the secondary safety handle, which is also used
// by the list above.
list2.TryAdd(1);
// This th
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Unity 新手引导,支持矩形、圆形、圆角矩形点击穿透 (2000个子文件)
00000000000000001000000000000000 4KB
00000000000000002000000000000000 4KB
00000000000000003000000000000000 4KB
00000000000000004000000000000000 4KB
00000000000000004100000000000000 4KB
00000000000000005000000000000000 4KB
00000000000000005100000000000000 4KB
00000000000000006000000000000000 4KB
00000000000000006100000000000000 4KB
00000000000000007000000000000000 4KB
00000000000000007100000000000000 4KB
00000000000000008000000000000000 4KB
00000000000000009000000000000000 4KB
0000000000000000a000000000000000 4KB
0000000000000000a100000000000000 4KB
0000000000000000b000000000000000 4KB
0000000000000000c000000000000000 4KB
0000f9e138d5f0699ace233517bc51bd 4KB
0010a1df575fef24492fc04624d2a076 22KB
001cc783d3b4ae166d710a488abec877 31KB
0047d4cf9cd3c65aeef3f1db2be13e08 4KB
00489b323b2e13e5aee07097e7cf66a7 4KB
00648463bcd0aedb6f1231b693934e48 4KB
007776f4de4b94f6a1d9a06c29fb6dcf 4KB
008ec56b65812db89cfc971f2538398a 25KB
00948765cc4bf682266f72cd9dced72a 30KB
0099a6b7fdab1959ae8a48d1970eccc4 19KB
0099faeeefe13ebd2c6b67fc3d96cc35 4KB
00a76ec6887e7e7949b91db2a01c4850 4KB
00aa11550cab4d3a05189baec934fcbc 4KB
00ac5085bb56969b89535a1afccadb5b 4KB
00c50029c2a8dbe60eda5289963e4dd9 4KB
00c571fa6c29fc77353ba8a306439f5b 4KB
00d23cf1bf4adb921e4fe2676f7016b0 4KB
00d853fc8c102cab03efaa77c8acdc0c 4KB
00dd066f48d80d071337c4620275ab42 4KB
00e5df2bbd85a1dab6afb227830cebad 20KB
01006b5471ebd7d05f89de3c10e9d2d8 4KB
0101d56e9380968058acc83adfc9fc30 4KB
01142e7dd9b5da9c6a22fc7d30c3f0db 4KB
0114470bccef967f66a4b87fa0075fbd 30KB
011ac47c7382a087c4691988d43cfc36 4KB
0129403c501e748b6231f0300cac361a 120KB
012e1681df11236a164d13354d966d1c 4KB
013816c6dea7fc19fc9ad3af91ac8131 4KB
015c2df79fbba73a4e50f6f1b7c8073f 4KB
015c51c0b28c7fdaf2b76d27ffeac6a0 19KB
015c5609b82a4730c67dc4190bf32f25 96KB
017beb63766ff8f57a0cca8ac49e829f 4KB
0189346a095d544c6f4c4fef960e4742 4KB
018a238197b03197f6b2657ccaec8dee 3KB
019c0762e86b392f68a694b097a416ea 4KB
01bd7ac354bd26613e112dcd91728503 4KB
01c53b6dab0489d6e966c2f7bb1df075 29KB
01cb1d6a3bab8f241e506793a6d221f2 3KB
01dce7a2bcda3d73fdb998b48ff12dd7 31KB
01eba66a393dd61468e236048dc5f263 4KB
0305d2a7b72885915bdfbb52202c750f 29KB
03155c5d4e6a36e03244aa8a96bdb8d6 4KB
031aaaf8cb5ed740ea249486ac5694c7 34KB
032661f73f62d65cb86c66bb955b20a7 29KB
0327bdef698b551e2a52efca65e4e336 4KB
032a912903766fb7fa2d2a9faead7ee3 4KB
033029c874a60208614efdfd0ea79167 360KB
033a6de40a2f05763622536b62076099 3KB
034d569e347fc93fed8c150a4ac87865 4KB
0369a59f430b88e00ab72a8cf0df0972 4KB
037984a07bb34541bc3c5ff1674579a0 4KB
037f235b6699e02fbd35abcccf110761 3KB
037fea4796153bbfac207dcc5b633878 34KB
038125fe898c2827fd07a07096e5a26a 4KB
03a0379abbfdce8e07058775b0399985 4KB
03a4a191d40e4637765e6e255b4b0c3f 4KB
03a9fd53d2e37e1bcfa8abb0451380af 4KB
03af1301770cbc64b63dbc839c7eea08 4KB
03b05a3374fc4893344e6e85b72207b8 4KB
03baa32d23ee0d0b561f30f07a27c69a 4KB
03d6961e5b11474ce1ffb83ed5973438 4KB
03e6e8819e559b515258748d5f38e1e3 4KB
03edc0c73064cffbeed1fc65cde13297 4KB
03f85f90e776fdf8edf29ecaffb79fa1 62KB
0621b4aab2236437592f1f292cb81d20 4KB
0707b2471843eec5cb10bfe497c5fb6c 4KB
0709c3330d12cf9b61c4ba6a2783dc53 4KB
071be7793b19b05017529484548b4938 5KB
072c479e57d3946f4cf22994b86544e6 34KB
07430e09388fa4f4e8a2052efc7da17f 4KB
07829b585443fafad7955e8fd024aae2 4KB
0796012dd063bd830f99463151921d8e 4KB
07a63f2a4758202317d9e93a4a3ab549 4KB
07bf420b684a8cab8182230850a4570a 4KB
07c1c369644e22227ebccd7a2690e8db 3KB
07c20ecd200d561bdd7fa92f97375a4e 4KB
07d8ffc2632c483991249bb6eb8e0be9 4KB
07e96baddc409ce2f371f617bdcd8a91 4KB
090949700d2ae761566a4b1803176deb 4KB
090c8c6ad3071bfe998d7aef8e504253 29KB
0911afeef7b5e6fce5fe2e344a12f5f8 4KB
0919ccce4f85690d4faa78d73d9c4edd 4KB
09501adbd84c33afdf157eb4bebfd7b6 4KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
- 明儿去打球2023-07-27感谢这份引导文件,它为我提供了一个很好的起点,让我对Unity的开发有了更深入的了解。
- 我只匆匆而过2023-07-27引导文件中的案例分析非常实用,能够帮助我更好地理解并运用Unity的各种功能。
- 我有多作怪2023-07-27在这份引导文件中,我学到了很多实用的技巧和技术,感觉自己的游戏制作能力大幅提升。
- 王元祺2023-07-27这份Unity新手引导文件详细介绍了Unity引擎的基础知识,非常适合初学者入门。
- 永远的122023-07-27文件内容清晰明了,让我快速掌握了Unity的基本操作和开发流程。
国家一级摸鱼选手
- 粉丝: 107
- 资源: 14
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Python大作业-爬虫(高分大作业)
- Python 图片压缩工具
- qt4.8.6资源,用户qt安装,编译与学习
- (176465412)电气设计视频教程-Eplan.P8
- Python大作业爬虫项目并且用web展示爬虫的内容(高分项目)源码+说明
- Python项目-实例-27 生成词云图.zip
- (176566822)数据库课程设计ssm027学校运动会信息管理系统+jsp.sql
- C# WPF-激光焊接机配套软件源码及文档(带视觉需halcon)
- (177333248)c++实现的仿QQ贪吃蛇大作战多人联机游戏.zip
- Python大作业-爬虫(高分大作业).zip
- (177487602)c++ 家谱管理系统.zip
- IMG-8274.GIF
- (177938850)115-基于51单片机和PROTEUS的基于C51单片机的智能交通灯设计.zip
- 基于微信小程序的宏华水利小程序.zip
- (OC)数据加载SVG图片
- linux3.8.6内核资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功