Persons don't change color if grid too large

I noticed a weird effect: If the grid size is greater than 145, none of the instantiated persons changes color upon collision. At 145, some will change color, but you’ll always have some that don’t. The number of “no-changers” decreases with decreasing grid size, at 100x100 definitely all change color.

I couldn’t figure out a reason, as far as I can tell my code is iddentical to the one shown (I’m using the new 0.50 DOTS packages, though). I guess it has something to do with the number of threads / Randoms? Any ideas?

It’s possible that it has everything to do with the 0.50.0 Dots installation. This has only been around for an extremely short period of time, and at the same time we found out that it was released, we also found out that it contains “breaking” changes to the system from 0.17.0, meaning that we can’t guarantee that this course won’t be broken when using 0.50.0.
At this time, with the change so new, our plan is to update the course DOTS becomes production stable, as we are expecting more breaking changes within the next few weeks. For now, we’re going to show folks how to install the 0.17.0 packages.

Installing 0.17.0

* Close Unity * Navigate to your project folder and look for Packages/manifest.json * Edit this file with an editor of choice. Select all of the file and replace it with the following code
Summary
{
  "dependencies": {
    "com.unity.collab-proxy": "1.13.5",
    "com.unity.dots.editor": "0.12.0-preview.6",
    "com.unity.entities": "0.17.0-preview.42",
    "com.unity.ide.rider": "2.0.7",
    "com.unity.ide.visualstudio": "2.0.11",
    "com.unity.ide.vscode": "1.2.4",
    "com.unity.physics": "0.6.0-preview.3",
    "com.unity.platforms.windows": "0.10.0-preview.10",
    "com.unity.render-pipelines.universal": "10.6.0",
    "com.unity.rendering.hybrid": "0.11.0-preview.44",
    "com.unity.test-framework": "1.1.29",
    "com.unity.textmeshpro": "3.0.6",
    "com.unity.timeline": "1.4.8",
    "com.unity.ugui": "1.0.0",
    "com.unity.modules.ai": "1.0.0",
    "com.unity.modules.androidjni": "1.0.0",
    "com.unity.modules.animation": "1.0.0",
    "com.unity.modules.assetbundle": "1.0.0",
    "com.unity.modules.audio": "1.0.0",
    "com.unity.modules.cloth": "1.0.0",
    "com.unity.modules.director": "1.0.0",
    "com.unity.modules.imageconversion": "1.0.0",
    "com.unity.modules.imgui": "1.0.0",
    "com.unity.modules.jsonserialize": "1.0.0",
    "com.unity.modules.particlesystem": "1.0.0",
    "com.unity.modules.physics": "1.0.0",
    "com.unity.modules.physics2d": "1.0.0",
    "com.unity.modules.screencapture": "1.0.0",
    "com.unity.modules.terrain": "1.0.0",
    "com.unity.modules.terrainphysics": "1.0.0",
    "com.unity.modules.tilemap": "1.0.0",
    "com.unity.modules.ui": "1.0.0",
    "com.unity.modules.uielements": "1.0.0",
    "com.unity.modules.umbra": "1.0.0",
    "com.unity.modules.unityanalytics": "1.0.0",
    "com.unity.modules.unitywebrequest": "1.0.0",
    "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
    "com.unity.modules.unitywebrequestaudio": "1.0.0",
    "com.unity.modules.unitywebrequesttexture": "1.0.0",
    "com.unity.modules.unitywebrequestwww": "1.0.0",
    "com.unity.modules.vehicles": "1.0.0",
    "com.unity.modules.video": "1.0.0",
    "com.unity.modules.vr": "1.0.0",
    "com.unity.modules.wind": "1.0.0",
    "com.unity.modules.xr": "1.0.0"
  }
}

Restart Unity and the proper packages will be installed.

Privacy & Terms