3D Tiles do not load in play mode

Hey, I have a problem, my 3d tiles do not load when I start the playmode. I only get the following error:

[2024-07-02 12:09:16.432] [error] [ErrorList.h:72] Errors when loading tileset:

  • Status code 401 was returned for the asset response https://api.cesium.com/v1/assets/150/endpoint? <MY_API_KEY>
    UnityEngine.Debug:Log (object)
    Reinterop.ReinteropInitializer:UnityEngine_Debug_CallLog_FA05wu8x__otZNsgdHTnU9A (intptr) (at ./Library/PackageCache/com.cesium.unity@1.10.0/Runtime/generated/Reinterop/Reinterop.RoslynSourceGenerator/ReinteropInitializer.cs:60677)
    CesiumForUnity.Cesium3DTileset:Update () (at ./Library/PackageCache/com.cesium.unity@1.10.0/Runtime/generated/Reinterop/Reinterop.RoslynSourceGenerator/Cesium3DTileset-generated.cs:606)

Unfortunately I can’t do much with the error… i know the connection is not good enough but how can i fix it

Thanks for help!!

Hi @Jhen237, welcome to the community!

That sounds like strange behavior; I’m not sure what could be going wrong. Could you provide us with some more information?

  • What versions of the Unity Editor and Cesium for Unity are you using?
  • Which 3D Tilesets aren’t loading? (One in particular? All?)
  • Are you able to see them load in the Editor?
  • Is your project using a valid Cesium ion token? You can try creating a new one from the Tokens window in the Cesium panel.

Once we have these details, we can try to troubleshoot from there. Thank you!

Hey @janine,
my Unity version is 2022.3.27f and the cesium version is 1.11.0.
They are Google Photorealistic 3D tiles that do not load, these are the only objects I have in the project.
They load in the Scene view but not when I press play.
I have activated the ion token. All checkboxes were also correct.

Thanks in advance

Hi @Jhen237,

Thank you for providing those details! I’m afraid that I’m still unsure of what’s wrong from a glance. Could you also provide me with the following:

  • A screenshot of your Scene Hierarchy.
  • A screenshot of the Cesium 3D Tileset settings for the Google dataset.

There may be something subtle going on, and it would be easier to catch it through these screenshots. Thank you!

hey, thanks for your help, the error was probably that I had an outdated version… it works now. My question now is how do I adjust the quality of the 3D tiles? Do they stay like this or is there a possibility for a high resolution?

Hi @Jhen237, glad it’s working now.

You can adjust level of detail by changing a Cesium3DTileset’s Maximum Screen Space Error. It defaults to 16, but lower values will try to load higher level of detail.

Depending on the map asset you are using, there may or may not be higher resolution data available. For example, Google P3D tiles looks great from an aerial view, but if you go to street level, the source data can look a little coarse if you are expecting to see fine details in trees or buildings.