A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community.
Separate names with a comma.
Hello. I had this problem due to variables: static readonly int width = Screen.width; static readonly int height = Screen.height; Getting the...
Tell me where exactly is the source code?
Yes. It is very similar. Thank.
Yes. 1) Probably the location of the starting points of the arrays in memory will be more universal at addresses that are multiples of 128 bytes....
Hello! 1) NativeArray aligned in memory? 2) If you process a loop in blocks of 64 bytes, will the blocks fall entirely into the cache line? 3) Is...
I use in such a way. https://docs.unity3d.com/Packages/com.unity.physics@0.1/manual/getting_started.html using System; using Unity.Physics; using...
Hello. I direct two objects to each other. (I establish PhysicsVelocity). After collision they stick together. How to make a rebound?
1) How it can be done? 2) There is still a thought to have empty GameObject with a collider. Without restoration of a collider. To adjust a...
Hello. 1) How to change the object size? Found only such option: var entityManager = World.Active.EntityManager; Entity sourceEntity =...
Thanks a lot. Most likely "EntityManager.HasComponent <ComponentE>(entity))" will solve my problem. Added later: Though many not necessary...
Hello. There are entities which have A,B,C,D components. There are other entities which have A,B,C,E components. I need to create two arrays of...
Many thanks to you. 1) Forgive for a silly question. var nativeArray = entityQuery.ToComponentDataArray<T> ( Allocator.TempJob ); How...
I use [ReadOnly] of public NativeArray<ArchetypeChunk> Chunks; for iteration on all components in the second cycle. Whether NativeArray...
1) At consecutive iteration on "chunks" ( Manual iteration or IJobChunk ), if I also work with the created NativeArray <float>, then behind it it...
How it is possible to add identical components an unlimited number of times on one object? entityManager.AddComponentData ( instance,...
It is just an example, the real code is more difficult. It is strange that "Manual iteration" was given me the easiest))) Thanks.
Hello. 1) Correctly I understand that "iJobParallelFor.Schedule (1000, 100, inputDeps);" every time will be always divided and be carried out on...
Thanks. The fact that you can process a lot of information is great. But I so am not able. 1) And how? (I just want to know different options to...
1) That is, if I find out how many cores are present, and schedule as many regular IJob (dividing the array processing into separate parts), will...
What kind of examples will give me the answer to the question of how to do the same, but manually? (Because I need to plan the number of arrays...