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

Question Subscene fails to build with DOTS 1.0.0-pre.15

Discussion in 'Entity Component System' started by Ondrej98, Feb 2, 2023.

  1. Ondrej98

    Ondrej98

    Joined:
    Oct 18, 2016
    Posts:
    21
    I can't find a way a build a scene containing a subscene with the newest DOTS packages.

    I create a new project with Unity 2022.2.
    I import newest packages:
    "com.unity.entities": "1.0.0-pre.15",
    "com.unity.entities.graphics": "1.0.0-pre.15"
    "com.unity.physics": "1.0.0-pre.15"
    (I am using some other packages the manifest.json is in the BuildTest3.zip)
    I enable unsafe code.
    I create an empty scene and inside a subscene with a GameObject and attach the most basic component.
    I create a new build configuration - classic windows build.
    I add the scene to the build configuration. (not adding the subscene)

    upload_2023-2-2_16-1-32.png

    I hit build on the build configuration asset.

    This is the result:
    upload_2023-2-2_15-59-57.png

    Failed to build entityScene for .... at Unity.Scenes.Editor.EntitySceneBuildUtility.PrepareAdditionalFiles

    How can I get my scenes to build? The whole project and relevant files are attached.
     

    Attached Files:

  2. Spy-Master

    Spy-Master

    Joined:
    Aug 4, 2022
    Posts:
    509
    https://docs.unity3d.com/Packages/com.unity.entities@1.0/changelog/CHANGELOG.html
    Platforms package is not applicable in Entities 1.0.0-pre.15. Read the changelog. Remove it from your project. Build configurations aren’t used either. Build through the normal build window.
     
  3. Ondrej98

    Ondrej98

    Joined:
    Oct 18, 2016
    Posts:
    21
    Hey, thank you for the answer. I deleted the package and tried to build it in a normal way. When running the build I get the following error: Could not open file .....entityheader for read. Any idea what could be the problem?
    upload_2023-2-18_0-54-6.png