Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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
156 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 ...
user avatar
0 votes
1 answer
58 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 ...
user avatar
  • 135
0 votes
0 answers
55 views

Unity DOTS/ECS: Spawning variable number of entities from prefab using control buffer

I have an input system that I want to work as follows: When the space bar is pressed, the number of NPC entities in my scene will increase by an order of 10. For example, when the scene first starts, ...
user avatar
0 votes
1 answer
94 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 ...
user avatar
0 votes
0 answers
90 views

Unity DOTS/ECS: How to initialize entity component values when spawning programmatically

I'm trying to figure out how to instantiate an entity from my GameManager script in Unity ECS, but I've been having trouble. In a previous thread, I tried spawning an entity one, and ended up spawning ...
user avatar
1 vote
1 answer
24 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 ...
user avatar
  • 723
0 votes
2 answers
96 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 ...
user avatar
1 vote
1 answer
54 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 ...
user avatar
  • 249
2 votes
1 answer
396 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 <...
user avatar
1 vote
1 answer
142 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 ...
user avatar
0 votes
2 answers
241 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 ...
user avatar
1 vote
1 answer
215 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 ...
user avatar
3 votes
1 answer
1k 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 ...
user avatar
  • 111k
1 vote
1 answer
847 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 ...
user avatar
1 vote
1 answer
941 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 ...
user avatar
0 votes
1 answer
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?
user avatar
1 vote
0 answers
201 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 ...
user avatar
  • 445
1 vote
0 answers
118 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 : ...
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 ...
user avatar
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 ...
user avatar
0 votes
0 answers
910 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 ...
user avatar
  • 407