# 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个文件
md:553个
bin:335个
txt:188个
需积分: 0 0 下载量 175 浏览量
2024-04-30
19:08:17
上传
评论 2
收藏 581.46MB ZIP 举报
温馨提示
游戏项目文件、素材、导出的可以在电脑端运行的exe文件
资源推荐
资源详情
资源评论
收起资源包目录
基于Unity的打地鼠小游戏 (2000个子文件)
01142e7dd9b5da9c6a22fc7d30c3f0db 4KB
011ac47c7382a087c4691988d43cfc36 4KB
0129403c501e748b6231f0300cac361a 120KB
012b010ead286d07c0cdd7ff547f69e5 29KB
012e1681df11236a164d13354d966d1c 4KB
0139bbc89b66a9d8d7ce3f0f2669355a 4KB
0173e0e05ea0dca3c556d52b639ceaf4 4KB
017beb63766ff8f57a0cca8ac49e829f 4KB
017f5a64719d037bd888bd5953e1af2f 4KB
018a238197b03197f6b2657ccaec8dee 3KB
018ce6f37a58f1642bc487c385f235bc 4KB
019c0762e86b392f68a694b097a416ea 4KB
01a4967130975d0c522442278c3c6f60 30KB
01a77886ab08d2c7e4901ac88f78d413 4KB
01b53638d7eabf606573da7da3849f27 32KB
01bd7ac354bd26613e112dcd91728503 4KB
01c2df486e80d696815d969dad28f540 4KB
01cb1d6a3bab8f241e506793a6d221f2 3KB
01efadf287ff97f26a0efce62a365be8 98KB
01fa584a25ff5e0b6150ad7b972f9d52 4KB
0f1101ccec9e70647d958ac496f960dd 4KB
0f1fd737e54d4021762c8ef3d87894c7 11KB
0f223db1de6023326d158e09be9fb6a7 47KB
0f2c4acf8e8a76b88ea40f8ee1c28239 30KB
0f3008177f136e393097a72fed7a528e 4KB
0f3319fb912e2763a25cfef06c0bf46d 4KB
0f3c3245dfbcb0edfd04586998f2ed56 4KB
0f4b1108b74de4a8f0b49ab2b83d297d 4KB
0f4b1d482f1f5cf84e8d9476e94b79ef 38KB
0f62213db008a43256496c4952177af3 29KB
0f84ef07959082be081ae977ce70b06f 4KB
0f9457231b9a2a8f4880f49265bc9af0 4KB
0fa4563fa260174610e709d5dceec6fb 4KB
0fb07399bad0db3807dc605bda0ede0d 4KB
0fbc3e3cc62bb5d9e2b9d5f58793c8e8 4KB
0feec751de36d28c8cb659bb4521f4c6 4KB
1315297061f1fee5c92eed1d78d73439 4KB
1323113789988a42a579091f8240428a 4KB
1325ac915d43e512dc3abc9b44512bdb 4KB
132f92502c14b8d673f6a1507b0df716 4KB
1330773f6a51fbac45ff23d927f8d7fc 31KB
13359ed4394c380e312cf3cf4e9c1794 4KB
1371ec770b8cf7e3daa0b1e6f80e366e 4KB
13b3d2088891540ed77241a271ae1ad4 4KB
13d3ceb87c663b8536ef6cab87a84afb 31KB
13e84022bcea0955f6fa1e3f6a4aa93d 4KB
13ed696eaf99981fc82eeb0080e30d7e 4KB
13f79c3388d18af9d5ae203fde43c428 4KB
19037872c475cdba7bd43a749666f393 8KB
1905c749261c8b0440fe3a746ac914f2 4KB
190adfd91c51194ff8e0cc556c8e2449 4KB
190e97b6227a0a732da91fa98c060bdd 4KB
1918f353511be6a8480ab0a708316a76 4KB
1919525aeb41096b251ec2fca7aebe30 4KB
191d6dbed18835b341ed32bfed7c8cd5 43KB
19225c61fc5d84b32c9209bcd93d1ad7 4KB
192e802a9a61f5debbc6cefaeb1d0a70 61KB
193ad4f4b8026ce4734fb76d2d391bad 4KB
193f7aefef9b015313411b9b63920a85 4KB
1951be73b4bf80c6990a19fd3b867d9c 4KB
19538cb074fbfd40e93ef6ec006c0cbd 18KB
1965d338179e5cec798d01f0d77795e6 30KB
196b32cf304f5ad154c67837686324e0 33KB
197018210161777d8ef8bc453d94bb05 4KB
1977b73ccc77f21270a1a6570ccc1448 4KB
1987742f9ef2afa50701a2a20f5b504a 4KB
19899a425fffe4986d01c22b6882e982 4KB
199541dc7cb066aa058182ef1419f7b5 4KB
19a0445d9edb28a831f6138a52c27e36 4KB
19bec62bf259aeee37b845a73fbe5d16 4KB
19bf58f8160835070e1e27f4ef9223be 4KB
19c55567080e4086e75fc1415aee6a02 4KB
19c7d5e459c383138fa24cb7902378be 4KB
19cbbbe4c1ba89bec7b0d50baf8c0f75 33KB
19cd8ec278581683030381692b095d07 4KB
19e8bcefce77af1260a9bc6bffb01787 4KB
19f66c7a6c3f1fdc2d26f9af8b873d27 4KB
19f8d3e9930ebe056a060c0730e427eb 4KB
19fd96d5220cdda928e6786bfbee41b6 4KB
1e078c247c9a54c62c06c477aede912b 4KB
1e09e3c3c978e9d5245d1706e35b3906 4KB
1e11c31d32b70d71ca62892f3145fabc 4KB
1e2f4b54da29b211cf04b37f4caae42a 4KB
1e48285b0547f90d1b4b6123a0b6ee79 4KB
1e522e163c2dfea4c63666fb93f6c4e2 4KB
1e57a5b5a3f424a620dcecd24a22af39 4KB
1e8f815866e0d668362af6e4a945cd23 6KB
1eb0d5d782790b330a51ad41164b1c1d 4KB
1eca69e46304aa06ef75bd01812664ce 4KB
1ed2e7c38c22332ed904b65a6df7a52c 4KB
1ed35ab3fffefd7b3ba1e3f0fd618d47 3KB
1ed555337e377ff52306285eec8c99c0 4KB
1ed9eb48ac7f9cb171668d0645d334a8 18KB
1eed1258fc79b1c923a896914a6e81f5 4KB
1ef62133875eec18d9a00a020599e472 4KB
1efa8fb297f6185390b8c7b1e2edc31c 4KB
2918b41acfa48d188ef544927d40a2b7 4KB
2919193c594fa1c9f5e62f759bf10632 3KB
291cba42f23df66cebab86adc7d91d49 4KB
2922c5969519847cdf5670d4a75bb762 4KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
好棒棒哦
- 粉丝: 51
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功