4
votes
Accepted
Unity DOTS/ECS: Spawning entity programmatically at specific location
After you instantiate the entity, try:
...
3
votes
Accepted
Unity conversion of Gameobjects to ECS
Its look like that you have not installed the "Hybrid Renderer" Package.
When you want to convert Game objects to Entities then you have to also install "Hybrid Renderer" from package manager.
Open ...
3
votes
Accepted
How do I handle lists/arrays in Unity DOTS/ECS?
If you want a component that doesn't have a 1:1 relationship with entities but a n:1 relationship, as in "an entity can have multiple instances of that component", then you need a Dynamic ...
2
votes
Accepted
Should I dispose a NativeArray on application quit?
Yes, the OS releases leaked memory on exit. At least, this is what happens when a new application starts and the OS manages memory allocation for execution.
On the other hand, Unity's Play Mode ...
2
votes
Instantiated entities don't collide with each other
Found the solution at the Unity's forums old thread, here's the link. Long story short I passed null as the second parameter when called GameObjectConversionSettings.FromWorld function. But you MUST ...
2
votes
How to detect collisions in Unity ECS?
Update: This answer was originally written based on Version 0.51 of the physics system. The documentation of version 1.0 of the physics system has a chapter on processing collision detection events ...
2
votes
Accepted
Rotating only 2 axes of rotation quaternion to "point" in a direction
Following DMGregory's excellent answer and posts linked, I now understand the issue. I have implemented his function provided in one of those answers, and it works beautifully.
This is my solution:
I ...
1
vote
Transform is not available in SystemBase Script (Unity Entities)
Thats how I set the camera position in my ECS game:
...
1
vote
How to use Unity ECS without URP or HDRP?
I have successfully used entities with the regular render pipeline in one project. I did this by creating a MonoBehavior I called "EntitySurrogate". Its Update-method queries the entity ...
1
vote
How to animate game object using entities?
I managed to get it working after selecting "Convert And Inject Game Object"
...
1
vote
Rotating only 2 axes of rotation quaternion to "point" in a direction
I get a lot of mileage out of this trick (see several past answers):
...
1
vote
1
vote
Accepted
Using EntityManager from inside a system
Check out this example of a system which has entities spawning more entities from Unity Technologies.
This comment explains the problem:
Systems can schedule work to run on worker threads. However, ...
1
vote
How to make animation in unity Dots hybrid?
Update: There is now an animation package for DOTS which might work better than what is described in this answer, but is still considered highly experimental.
As far as I am aware, the machinima ...
1
vote
IConvertGameObjectToEntity interface on Unity ECS
There is capsule collider attached to the bullet in the tutorial, But Mike Geig did not explain any thing about physics and collider, But as much i know unity "MonoBehavior" physics is not working ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
unity-dots × 29unity × 27
entity-component-system × 20
c# × 5
shaders × 2
animation × 2
unity-job-system × 2
2d × 1
collision-detection × 1
physics × 1
rendering × 1
rotation × 1
gui × 1
raycasting × 1
quaternion × 1
angles × 1
console × 1
unity-urp × 1
entity × 1
burst × 1