Questions tagged [unity-dots]

Use this tag for questions towards Unity DOTS

DOTS is a Data-Oriented Tech Stack of Unity composed of three elements: The entity-component-system (ECS), the jobs system, and the burst compiler. https://unity.com/dots

34 questions
4
votes
1 answer

How can I freeze / constraint a PhysicsBody's rotation in Unity DOTS?

I was trying to port a small test project from Unity Engine to learn about Unity New Fishers DOTS && ECS. It's a small project where I have a capsule with a Rigidbody and I move it from left to right using add force and I clamp the velocity to limit…
aartiui 12
  • 41
  • 3
4
votes
2 answers

Where is 'FixedUpdate' in Unity DOTS (ECS)?

I am starting to find my way into using the DOTS (Data Oriented Technology Stack) method of making objects. There are several samples all over, Youtube videos and also samples directly from Unity, such as the github repo…
Blindleistung
  • 672
  • 8
  • 21
2
votes
1 answer

Time.timeScale not working for Unity.Physics package (DOTS)

if I set Time.timeScale = 0; nothing changes, if set Time.fixedDeltaTime = 0; my physical objects begin to behave strangely, but do not stop completely. Maybe someone knows how to change timeScale for DOTS Physics
2
votes
0 answers

Unity ECS/Burst on IOS

I have created a new project using Unity 2019.3.0f6 under macOS Mojave.10.14.6 Added a simple cube to the scene and included the following packages from the Package Manager: Entities preview.11 - 0.5.1 Burst 1.2.2 I can build the project fine on…
Lexicon
  • 473
  • 1
  • 3
  • 15
2
votes
0 answers

How to spawn units using DOTS?

I am following this talk https://www.youtube.com/watch?v=BNMrevfB6Q0 and try to understand how to spawn units as I click my mouse (for testing purposes). For this in general, I created a UnitBase etc. which implements…
Stefan Falk
  • 23,898
  • 50
  • 191
  • 378
1
vote
1 answer

Why does my Unity ECS simulation move all objects to the same position?

I am trying to learn the Unity Dots / ECS system, and am running into a really incomprehensible issue that has me completely stuck. I am trying to build a life simulation that has a collection of cells spawn and move around. But I haven't even got…
JoeGatling
  • 13
  • 2
1
vote
1 answer

Unity ECS - Not visible in Scene View

I have a simple Unity project using the Entities and Entities Graphics packages, and it is working fine in the Game View but not visible in the Scene View. Have I missed a step?
chantey
  • 4,252
  • 1
  • 35
  • 40
1
vote
0 answers

In unity dots physics,is there any way to scale mesh collider?

In traditional physics engine,we can scale the mesh collider by changing the scale in Transform property. What about in dots physics,I've tried adding the scale property but it doesn't work. In traditional physics engine,we can scale the mesh…
DragonWind
  • 11
  • 2
1
vote
0 answers

Unity ECS, Initialize a PhysicsColliderKeyEntityPair buffer

I have an entity with multiple PhysicsCollider that RaiseTriggerEvents only. I think I cannot have a child entity that contains a PhysicsCollider IComponentData, so I think I have to use PhysicsColliderKeyEntityPair. How do we initialize a…
1
vote
1 answer

Many compilation errors after importing DOTS editor

I'm trying to learn how to use DOTS, and I can't seem to get it to compile in a blank project. I installed the following packages into a new unity project using editor version 2021.3.6f1: com.unity.entities…
Jam
  • 476
  • 3
  • 9
1
vote
1 answer

Component System OnUpdate Running Unintentionally in Other Scenes (Including New Ones)

I have a class that inherits from ComponentSystem in ECS and for some reason the OnUpdate function is being called unintentionally in every scene. Even if I create a new blank scene, the loop is running (and throwing errors). How can I fix…
1
vote
1 answer

RTT (Round Trip Time) always return Zero in Unity DOTs Project

I'm trying to use the DOTsSample Unity project and want to use this NetworkStatistics Class (https://github.com/Unity-Technologies/DOTSSample/blob/master/Assets/Scripts/Game/Main/NetworkStatisticsClient.cs) and trying to write a script to show the…
dev_rrp
  • 49
  • 7
1
vote
0 answers

Unity DOTS Cubes don't want to move properly

Hello i am currently learning DOTS but encountered a problem. I want to move some cubes but they don't want to. My System Script looks like this : protected override JobHandle OnUpdate(JobHandle inputDeps) { var deltaTime = Time.DeltaTime; …
1
vote
1 answer

Visual Scripting Dots Package Assemble issue

So I just created a new project to mess around with visual scripting, ECS and DOTS but I'm having some issues to get some of the unity physics stuff to work VisualScriptingPhysics.cs it says that it has Assemble reference missing but I have check…
MonoToast
  • 45
  • 4
1
vote
0 answers

How to make Unity DOTS Physics Ray cast works with ECS?

The problem: I have 3 game objects, that have PhysicShape and PhysicBody(static) components. I convert it into entities and move on to the scene. I don't the objects will collide with each other, so I try to make Ray cast to handle another object…
1
2 3