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.
29 questions
0
votes
1
answer
36
views
Transform is not available in SystemBase Script (Unity Entities)
My player is baked entity in subscene while main camera is outside on scene. For some reason system cannot find transform of camera, GameObject was found though.
<...
0
votes
0
answers
100
views
Entites are not rendering
I stuck in the problem that my entites are not showing. I found Entities graphic rendering sample for runtime it perfectly worked. But when i am integrating its code, there is no luck. Please tell me ...
0
votes
0
answers
150
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....
0
votes
0
answers
150
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 ...
1
vote
0
answers
519
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 ...
1
vote
0
answers
295
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
2k
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 ...
0
votes
2
answers
812
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 ...
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 <...
0
votes
2
answers
1k
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 ...
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 ...
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 ...
1
vote
0
answers
523
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 ...
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 ...
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 ...