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

How to resovle the newest sample compile error?

Discussion in 'Entity Component System' started by llxwd008, Mar 11, 2019.

  1. llxwd008

    llxwd008

    Joined:
    Aug 7, 2015
    Posts:
    49
    Hi,
    When I compile the newest Entity Sample, I met the following errors.
    Library\PackageCache\com.unity.entities@0.0.12-preview.27\Unity.Entities\ComponentQueryBuilder.cs(36,35): error CS1615: Argument 1 may not be passed with the 'ref' keyword
    Library\PackageCache\com.unity.entities@0.0.12-preview.27\Unity.Entities\ComponentQueryBuilder.cs(37,35): error CS1615: Argument 1 may not be passed with the 'ref' keyword
    Library\PackageCache\com.unity.entities@0.0.12-preview.27\Unity.Entities\ComponentQueryBuilder.cs(38,35): error CS1615: Argument 1 may not be passed with the 'ref' keyword
    Library\PackageCache\com.unity.entities@0.0.12-preview.27\Unity.Entities\Types\TypeManager.cs(388,40): error CS0117: 'UnsafeUtility' does not contain a definition for 'IsUnmanaged'
    Library\PackageCache\com.unity.entities@0.0.12-preview.27\Unity.Entities\Types\TypeManager.cs(830,31): error CS0117: 'UnsafeUtility' does not contain a definition for 'IsUnmanaged'

    How to resovle these? I can't find the info aboult these errors. Did anyone else met the errors?
     
  2. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    It sounds like you are not on the latest beta build of Unity 19.1.
     
  3. llxwd008

    llxwd008

    Joined:
    Aug 7, 2015
    Posts:
    49
    Thank you, I'll try it.
     
  4. llxwd008

    llxwd008

    Joined:
    Aug 7, 2015
    Posts:
    49
    If I use the latest beta build of Unity, CS0117 is fixed, CS1615 still occured.
     
  5. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,683
    You should update collections to preview.14, because ComponentQueryBuilder uses ResizableArray64Byte<T> which haven't overload for Equals with 'ref' in collections preview.13.
    upload_2019-3-13_9-58-1.png
     
  6. sngdan

    sngdan

    Joined:
    Feb 7, 2014
    Posts:
    1,154
    How do you guys go about installing packages from the package manager?

    I have Entities installed, which through dependencies installs e.g. Burst (preview .48 in my case)
    - this is however not visible from the package manager (it looks like burst is not installed)
    - there is burst version 1.0 available from the package manager - is this safe to install or will it break things with the corresponding Entity package referencing .48? or will the two versions .48 and 1.0 co-exist?

    Is there an explanation somewhere?
     
    SubPixelPerfect likes this.