[Fix in 2020.1.a17] v0.4.0: ContentBuildInterface missing GetPlayerObjectIdentifiersInSerializedFile

Hi all,

I’ve moved to entities 0.4.0-preview.10, but am sadly getting the above error(s):

  • Library/PackageCache/com.unity.entities@0.4.0-preview.10/Unity.Scenes.Editor/LiveLink/LiveLinkBuildPipeline.cs(257,61): error CS0117: ‘ContentBuildInterface’ does not contain a definition for ‘GetPlayerObjectIdentifiersInSerializedFile’
  • Library/PackageCache/com.unity.entities@0.4.0-preview.10/Unity.Scenes.Editor/LiveLink/LiveLinkBuildPipeline.cs(323,37): error CS1579: foreach statement cannot operate on variables of type ‘?’ because ‘?’ does not contain a public instance definition for ‘GetEnumerator’

This is my manifest:

{
  "dependencies": {
    "com.unity.addressables": "1.4.0",
    "com.unity.analytics": "3.3.4",
    "com.unity.animation.rigging": "0.2.5-preview",
    "com.unity.audio.dspgraph": "0.1.0-preview.11",
    "com.unity.collections": "0.4.0-preview.6",
    "com.unity.dots.editor": "0.1.0-preview.2",
    "com.unity.entities": "0.4.0-preview.10",
    "com.unity.ext.nunit": "1.0.0",
    "com.unity.ide.vscode": "1.1.3",
    "com.unity.physics": "0.2.5-preview.1",
    "com.unity.render-pipelines.universal": "7.1.6",
    "com.unity.rendering.hybrid": "0.3.1-preview.10",
    "com.unity.terrain-tools": "2.0.2-preview",
    "com.unity.test-framework.performance": "2.0.3-preview",
    "com.unity.timeline": "1.3.0-preview.5",
    "com.unity.ugui": "1.0.0",
    "com.unity.visualeffectgraph": "7.1.6",
    "com.unity.modules.ai": "1.0.0",
    "com.unity.modules.androidjni": "1.0.0",
    "com.unity.modules.animation": "1.0.0",
    "com.unity.modules.assetbundle": "1.0.0",
    "com.unity.modules.audio": "1.0.0",
    "com.unity.modules.cloth": "1.0.0",
    "com.unity.modules.director": "1.0.0",
    "com.unity.modules.imageconversion": "1.0.0",
    "com.unity.modules.imgui": "1.0.0",
    "com.unity.modules.jsonserialize": "1.0.0",
    "com.unity.modules.particlesystem": "1.0.0",
    "com.unity.modules.physics": "1.0.0",
    "com.unity.modules.physics2d": "1.0.0",
    "com.unity.modules.screencapture": "1.0.0",
    "com.unity.modules.terrain": "1.0.0",
    "com.unity.modules.terrainphysics": "1.0.0",
    "com.unity.modules.tilemap": "1.0.0",
    "com.unity.modules.ui": "1.0.0",
    "com.unity.modules.uielements": "1.0.0",
    "com.unity.modules.umbra": "1.0.0",
    "com.unity.modules.unityanalytics": "1.0.0",
    "com.unity.modules.unitywebrequest": "1.0.0",
    "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
    "com.unity.modules.unitywebrequestaudio": "1.0.0",
    "com.unity.modules.unitywebrequesttexture": "1.0.0",
    "com.unity.modules.unitywebrequestwww": "1.0.0",
    "com.unity.modules.vehicles": "1.0.0",
    "com.unity.modules.video": "1.0.0",
    "com.unity.modules.vr": "1.0.0",
    "com.unity.modules.wind": "1.0.0",
    "com.unity.modules.xr": "1.0.0"
  }
}

I don’t appear to be the only one. Looking at the code, I believe this may only be occurring for Unity 2020.1+ (I am using 2020.1.0a16.1913).

Is my assumption correct that it’s only for 2020.1 users?

Cheers

I’m not getting this error, and I’m using 2019.3.0f1

1 Like

a temporary solution is open the file where the error is coming and change


to

1 Like

19.3 works fine
2020.1.0a17 (When it will be released) will work with the 0.4 entities package.

3 Likes

Thank you very much for your answers, much appreciated!