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. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Compile error after upgrade of ECS to 0.0.12-preview.8

Discussion in 'Entity Component System' started by inyman, Jul 8, 2018.

  1. inyman

    inyman

    Joined:
    Oct 24, 2015
    Posts:
    9
    Hi,

    I started getting this compile error after latest upgrade of com.unity.entities.


    AppData/Local/Unity/cache/packages/staging-packages.unity.com/com.unity.entities@0.0.12-preview.8/Unity.Entities/SerializeUtility.cs(159,52): error CS1644: Feature `out variable declaration' cannot be used because it is not part of the C# 6.0 language specification

    Any ideas ?
     
  2. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,624
    Weird, you need .net 4.6 to use entities therefore should have 6.0 support (well actually 7.0 support because it ships with incremental compiler)
     
  3. inyman

    inyman

    Joined:
    Oct 24, 2015
    Posts:
    9
    Yeah, really weird. For now i've reverted incremental compiler and entities back to previous version
     
  4. inyman

    inyman

    Joined:
    Oct 24, 2015
    Posts:
    9
    Ok. The problem was when i added incremental compiler as well as entities package.
    After removing incremental compiler and keeping latest entities package it compiles correctly
     
  5. chmodseven

    chmodseven

    Joined:
    Jul 20, 2012
    Posts:
    111
    Does it stay compiled correctly though? I had a similar temporary success by playing around with older versions and then going back to the latest, but then found after exiting the editor and going back in that it was all borked again.
     
  6. inyman

    inyman

    Joined:
    Oct 24, 2015
    Posts:
    9
    i'm using latest entities package but I removed incremental compiler from the packages. Everything works, the only thing i i noticed is that burstcompiled job was giving me some runtime exception. It forced me to re-think the logic and split the job into two.

    Other than that i also upgraded the unity to the latest via hub.