How to determine whether the load is complete in Unity? I need to do some things after the load is completed again

How to determine whether the load is complete in Unity? I need to do some things after the load is completed again

Hello Liqiang

A trick I use is enabling the logs selection stats and retrieve them in unity.

If I have no logs within a certain number of frames I assume the load is finished.

The long term solution would be to patch Cesium3DTilesetImpl.cpp

Here is a snapshot of the code I use

        Application.logMessageReceived += (string condition, string stackTrace, LogType type) =>
        {
            if (!condition.Contains("[Cesium3DTilesetImpl.cpp:"))
                return;

Regards

We have an issue for this, but haven’t implemented it yet.

In the meantime, @carlopiersanti’s suggestion is a good workaround.