Search Unity

DiagnosticEventContext for Scene are lacking location information

Discussion in 'Addressables' started by KAJed, Apr 19, 2021.

  1. KAJed

    KAJed

    Joined:
    Mar 15, 2013
    Posts:
    122
    Trying to listen for addressable diagnostic events is somewhat broken with scenes because there is no location info provided. The underlying cause appears to be because SceneProvider.SceneOp / UnloadSceneOp do not implement that expected interface of IGenericProviderOperation.

    It seems as though perhaps SceneProvider was written early and never revisited to be correct? This makes it difficult to do our own checks on why certain addressable dependencies are loaded.

    EDIT: Although the operation is passed with the diagnostic event but everything in it (even the type) is private so getting that information out is still not good.