Skip to main content
4 votes
Accepted

Unity DOTS/ECS: Spawning entity programmatically at specific location

After you instantiate the entity, try: ...
Charly's user avatar
  • 752
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 ...
Swati's user avatar
  • 1,177
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 ...
Philipp's user avatar
  • 123k
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 ...
liggiorgio's user avatar
  • 5,534
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 ...
Айрат Насыров's user avatar
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 ...
Philipp's user avatar
  • 123k
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 ...
Daniel Vernall's user avatar
1 vote

Transform is not available in SystemBase Script (Unity Entities)

Thats how I set the camera position in my ECS game: ...
Bogdan's user avatar
  • 163
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 ...
Philipp's user avatar
  • 123k
1 vote

How to animate game object using entities?

I managed to get it working after selecting "Convert And Inject Game Object" ...
Emil's user avatar
  • 145
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): ...
DMGregory's user avatar
  • 141k
1 vote

Can I cache and edit Unity RaycastCommands?

The code I was trying to use looked like: ...
Chuck's user avatar
  • 249
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, ...
Philipp's user avatar
  • 123k
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 ...
Philipp's user avatar
  • 123k
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 ...
Swati's user avatar
  • 1,177

Only top scored, non community-wiki answers of a minimum length are eligible