Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Compiling ECS Examples for UWP

Discussion in 'Entity Component System' started by PLL, Sep 26, 2018.

  1. PLL

    PLL

    Joined:
    Jul 15, 2013
    Posts:
    19
    I am trying to build the latest ECS examples for UWP platform but I fail miserably :)

    Everything is well when I run it in the editor and also if I build it for PC/Mac but I cannot compile it for UWP.

    The errors follows. It seems it cannot find some definitions that are actually in the package and in fact it runs smoothly in the editor and in a standard PC build.

    Any suggestion?
    PL


    C:\Users\...\AppData\Local\Unity\cache\packages\packages.unity.com\com.unity.collections@0.0.9-preview.6\Unity.Collections\NativeArraySOA.cs(69,59): error CS0117: 'UnsafeUtility' does not contain a definition for 'GetFieldOffset'

    UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x0021f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:187
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:94
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  2. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    Please switch to IL2CPP, ECS is not supported on UWP without IL2CPP enabled.
     
  3. PLL

    PLL

    Joined:
    Jul 15, 2013
    Posts:
    19
    Actually we tried it but it seems either it does not work or I am missing something.

    We are using 2018.2.9f1 with the latest version of the ECS package and these are our settings.

    What am I missing? :)
     

    Attached Files:

  4. elZach

    elZach

    Joined:
    Apr 23, 2017
    Posts:
    48
    @Joachim_Ante I'm having the same issue as OP on an empty project on IL2CPP with just Unity.Collections and Unity.Jobs downloaded.

    Occurs throughout Unity2018.2 series and also in the 2018.3 beta.
     
  5. PLL

    PLL

    Joined:
    Jul 15, 2013
    Posts:
    19
    Does it happens in 2018.1? I did not try to go back to the previous version.
     
  6. pcysl5edgo

    pcysl5edgo

    Joined:
    Jun 3, 2018
    Posts:
    65
    Current ECS doesn't support 2018.1. It only supports 2018.2~.
     
  7. PLL

    PLL

    Joined:
    Jul 15, 2013
    Posts:
    19
  8. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    I asked the UWP team to look into it.
     
  9. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    optimise likes this.
  10. PLL

    PLL

    Joined:
    Jul 15, 2013
    Posts:
    19
    @Tautvydas-Zilys any hint on the timing? We have to deploy some demos for events and I hate to run everything from the editor (also because the "demoer" are not really Unity-proficient) :)
     
  11. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    The fix already landed to 2018.3.0b4, which should be out next week. No ETA for 2018.2 backport yet, I'm afraid.
     
  12. PLL

    PLL

    Joined:
    Jul 15, 2013
    Posts:
    19
    I will keep my fingers crossed :) we have to show a quite important demo and the editor does not cut it. They want to see the real deal.
     
  13. Guanfei_

    Guanfei_

    Joined:
    Aug 23, 2017
    Posts:
    2
    Has it been solved?
    I have the same problem;
     
  14. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    It's fixed in Unity 2018.3.
     
    FROS7 likes this.