Search Unity

Resolved Collections package throws: The type name 'ReadOnly' does not exist in the type 'NativeArray<T>'

Discussion in 'Entity Component System' started by Xaon, May 10, 2020.

  1. Xaon

    Xaon

    Joined:
    Feb 28, 2013
    Posts:
    62
    Hello

    I've planned to go through Pong tutorial. Loaded packages, added some objects to scene -basically it's an empty project right now. When opening editor it welcomes me with compilation errors:

    Library\PackageCache\com.unity.collections@0.8.0-preview.5\Unity.Collections\NativeArrayExtensions.cs(46,63): error CS0426: The type name 'ReadOnly' does not exist in the type 'NativeArray<T>'


    Library\PackageCache\com.unity.collections@0.8.0-preview.5\Unity.Collections\NativeArrayExtensions.cs(59,61): error CS0426: The type name 'ReadOnly' does not exist in the type 'NativeArray<T>'


    Library\PackageCache\com.unity.collections@0.8.0-preview.5\Unity.Collections\NativeList.cs(612,31): error CS0426: The type name 'ReadOnly' does not exist in the type 'NativeArray<T>'


    I'm using Unity 2020.1.0a13.1443 right now.

    Packages loaded:
    upload_2020-5-10_20-27-35.png

    Though project view shows there's much more:
    upload_2020-5-10_20-28-42.png

    And view from console:
    upload_2020-5-10_20-27-17.png
     
  2. Xaon

    Xaon

    Joined:
    Feb 28, 2013
    Posts:
    62
    Also when trying to recreate the setup I have this:

    Library\PackageCache\com.unity.burst@1.3.0-preview.9\Runtime\BurstRuntime.cs(125,34): error CS0117: 'BurstCompilerService' does not contain a definition for 'Log'


    Library\PackageCache\com.unity.burst@1.3.0-preview.9\Runtime\BurstRuntime.cs(125,71): error CS0426: The type name 'BurstLogType' does not exist in the type 'BurstCompilerService'


    upload_2020-5-10_20-38-5.png
     
  3. Xaon

    Xaon

    Joined:
    Feb 28, 2013
    Posts:
    62
    nvm, switching to Unity 2020.1.0b4 fixed issue
     
    prakyath_unity likes this.