Skip to main content

Questions tagged [unity-dots]

Questions about the Data-Oriented Tech Stack for the Unity Engine, including the new Entity-Component-System architecture, the Burst compiler and the Job system.

Filter by
Sorted by
Tagged with
1 vote
3 answers
223 views

How to use Unity ECS without URP or HDRP?

Finally, DOTS is completely released with Unity's 2022 version, so I decided to learn it using the latest tutorial by code monkey. He is using URP for this project. My question is, URP or HDRP ...
Muhammad Faizan Khan's user avatar
0 votes
0 answers
59 views

Preventing "pass through" situations properly when using ECS based collision detection

package versions I'm using: Entities: com.unity.entities Version 0.51.1-preview.21 Documentation URL: https://docs.unity3d.com/Packages/[email protected]/manual/index.html Physics: com.unity....
rasputin's user avatar
0 votes
0 answers
91 views

In Unity 2021.3.29(built-in render pipeline, entities 0.51.1-preview.21), what is the proper way of DOTS based collision detection?

Packages Installed: Entities: com.unity.entities Version 0.51.1-preview.21 Documentation URL: https://docs.unity3d.com/Packages/[email protected]/manual/index.html Physics: com.unity.physics ...
rasputin's user avatar
0 votes
0 answers
88 views

ECS: How do I instantiate Entities from a file of positions

I am quite new to Unity ECS and am trying to instantiate a few thousand entities based on positions stored in a .csv file. The file format can of course change, if that helps. My problem is to import ...
kugelblytz's user avatar
1 vote
0 answers
693 views

How do I instantiate entities from a regular MonoBehaviour in ECS?

I'm loading data from an external source [call it an array of vector3 locations for the sake of this question]. I want to use it to spawn multiple instances of an entity with a renderer and some other ...
Basic's user avatar
  • 1,278
1 vote
0 answers
357 views

Unlit camera-facing billboard in ECS/DOTS shader

I'm attempting to create an unlit billboard shader for use in DOTS. I'm using quads to host the material (Some regular, some DOTS for comparison purposes) I've cribbed together something from this ...
Basic's user avatar
  • 1,278
2 votes
1 answer
1k views

How do I handle lists/arrays in Unity DOTS/ECS?

I'm new to ECS and am having issues finding the right data structure to use. For context, I have a galaxy with solar systems that produce resources at a given rate (...
Basic's user avatar
  • 1,278
1 vote
0 answers
283 views

DOTS 0.50: Multiple Errors when installing Hybrid Renderer

I'll go straight to the point: I'm getting many errors when installing Hybrid Renderer for my DOTS project. I have no idea what to do. I haven't installed any other packages because there were already ...
Pedro Heck's user avatar
0 votes
1 answer
660 views

How to animate game object using entities?

I am having issues with some of the DOTS stack in unity (mostly the rendering and animation) and was hoping I could use gameobjects for those parts. Not sure how to use entities inside a regular ...
Emil's user avatar
  • 135
0 votes
1 answer
1k views

Unity DOTS/ECS: Spawning entity programmatically at specific location

I'm interested in learning how to spawn entities from prefabs (from a monobehaviour) at random locations in a scene on a key press. Similar to this video, I'd like to instantiate these objects ...
Mav's user avatar
  • 99
1 vote
1 answer
176 views

DOTS entity debugger -- trouble inspecting elements within a dynamic buffer

I'm using Unity 2021.2.7f1 with the latest versions of DOTS available. When I open up the entities debugger "Windows / DOTS / Enities" I can begin inspecting the live component values ...
Charly's user avatar
  • 742
0 votes
2 answers
640 views

Rotating only 2 axes of rotation quaternion to "point" in a direction

Note: I am using the Unity DOTS ECS framework, which contains less maths functions, but I can probably implement the same functions from standard unity if the code is public. This question is not ...
Kyohei Kaneko's user avatar
1 vote
1 answer
115 views

Can I cache and edit Unity RaycastCommands?

I'm simulating a LiDAR and am working to optimize the code. In following along with the RaycastCommand documentation, I have the core functionality working and I'm trying to optimize it. I see where ...
Chuck's user avatar
  • 249
2 votes
1 answer
2k views

Should I dispose a NativeArray on application quit?

I have a NativeArray which stays alive during the whole game, using the Persistent allocator. Should I dispose it inside an <...
starikcetin's user avatar
  • 5,295
1 vote
1 answer
513 views

Instantiated entities don't collide with each other

I've started to learn DOTS some day ago, and decided to create a simple project. When I added some simple physics to the game I faced the problem. I added one object on the scene and another ...
Айрат Насыров's user avatar
0 votes
2 answers
935 views

Unity ECS: Issues with rotation

Posting this here because I spent several days trying to figure out why I couldn't rotate my entities the way I wanted to in Unity. For a little bit of background, I'm creating a flight dynamics model ...
Mav's user avatar
  • 99
1 vote
1 answer
388 views

Unity ECS: How do I stop an entity from spawning twice?

I am implementing a flight dynamics model using Unity's built-in ECS package, Entities, and I keep running into one particular issue where the aircraft I'm trying to spawn gets converted into an ...
Mav's user avatar
  • 99
3 votes
1 answer
4k views

How to detect collisions in Unity ECS?

I am creating a game using the new Data-Oriented Tech Stack (DOTS). I am using Entities with the PhysicsShape and PhysicsBody authoring components of the new Physics package. Some of my PhysicsShape ...
Philipp's user avatar
  • 120k
1 vote
1 answer
1k views

Using EntityManager from inside a system

I am using Entities v0.8 I am trying to build a Spawner, and this is the system ...
Enrique Moreno Tent's user avatar
1 vote
1 answer
1k views

Scale / NonUniformScale is not applied to entity

I'm just learning the new Unity ecs and trying to change the size (scale) of an entity. Everything works fine, I can change the rotation, the position but not the scale. I'm wondering why. I did ...
theoretisch's user avatar
0 votes
2 answers
3k views

How to make animation in unity Dots hybrid?

I'm working on isometric game in 2D but didn't find any good tutorial in how to handle animation...any help?
Abdullah Ahmed's user avatar
1 vote
0 answers
424 views

How do set a layer on an ECS entity?

I'm using Unity ECS entities to draw out some tiles. I would like to determine the layer (or sortOrder) of the rendered tile so that if a tile is placed over another at the same position, the tile ...
dolyth's user avatar
  • 445
1 vote
0 answers
229 views

How to find and modify specific entity or gameobject in Hybrid ECS?

I am rotating 3 cubes in Unity with Hybrid ECS and the code goes like this : ...
Abhinay Singh Negi's user avatar
1 vote
1 answer
2k views

IConvertGameObjectToEntity interface on Unity ECS

Was working on ECS and following the tutorials by Mike Geig in Unite Copenhagen on YouTube(https://youtu.be/BNMrevfB6Q0), and understood that unity automatically converts transforms, mesh renderers ...
Gozmetaiemax's user avatar
2 votes
2 answers
4k views

Unity conversion of Gameobjects to ECS

I have not worked with ECS before, so I was following the tutorial by Unity's Mike Geig on Youtube to convert gameObjects to ECS from Unite Copenhagen, and this code does nothing, and there are no ...
Gozmetaiemax's user avatar
0 votes
0 answers
1k views

Unity "Convert To Entity" does not work (Render) with "Skinned Mesh Renderer" for Animations

I'm trying to make a game with Unity's ECS and Job System. I came across the issue where, Convert To Entity does not support Skinned Mesh Renderer. It does not render the mesh. I need it for ...
JekasG's user avatar
  • 407