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
0 answers
253 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 ...
0 votes
1 answer
254 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 ...
  • 135
0 votes
1 answer
600 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 ...
  • 99
1 vote
1 answer
47 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 ...
  • 733
0 votes
2 answers
341 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 ...
1 vote
1 answer
83 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 ...
  • 249
2 votes
1 answer
983 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 <...
  • 5,095
1 vote
1 answer
305 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 ...
0 votes
2 answers
542 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 ...
  • 99
1 vote
1 answer
295 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 ...
  • 99
3 votes
1 answer
2k 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 ...
  • 115k
1 vote
1 answer
965 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 ...
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 ...
0 votes
2 answers
2k 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?
1 vote
0 answers
280 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 ...
  • 445
1 vote
0 answers
158 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 : ...
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 ...
2 votes
2 answers
3k 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 ...
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 ...
  • 407