Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Define symbol defined but AtomicSafetyHandle could not be found

Discussion in 'Entity Component System' started by anarkiastd, May 13, 2021.

  1. anarkiastd

    anarkiastd

    Joined:
    Feb 3, 2018
    Posts:
    8
    Hello all,

    I am trying to get a Windows build with Unity 2021.1.6f1 - DOTS.

    Despite "ENABLE_UNITY_COLLECTIONS_CHECKS" is defined, collections safety checks are "forced on", related #if blocks are greyed out and I am getting "The type or namespace name 'AtomicSafetyHandle' could not be found " error for 35 different block so can't get a build.

    Any ideas would be appreciated. Thanks.

    Related used packages:
    Burst 1.5.0-pre.5
    Collections 0.15.0-preview.21
    Entities 0.1.7.0-preview.41
    Jobs 0.8.0-preview.23
    Platforms Windows 0.10.0-preview.10
     
  2. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,615
    Defining ENABLE_UNITY_COLLECTIONS_CHECKS doesn't work in builds.

    I believe this is because something like defining from player settings doesn't affect the internal UnityEngine.
     
    anarkiastd likes this.
  3. anarkiastd

    anarkiastd

    Joined:
    Feb 3, 2018
    Posts:
    8
    This worked. I see now, at least this thread remains for further reference. Thank you pal!