Search Unity

Question Load A URP Scene Or HDRP Scene from a standard scene(3D) using addressables?

Discussion in 'Addressables' started by zyonneo, Jun 7, 2021.

  1. zyonneo

    zyonneo

    Joined:
    Apr 13, 2018
    Posts:
    386
    From the same project I have loaded one scene to another from server using addressables .
    Is it possible to load a universal render pipeline(URP) or High Definition render pipeline(HDRP) from basic standard render pipeline(SRP)? So basically I will convert the URP scene or HDRP scene as addressable scene to load.

    Now, I tried testing it ,when clicking a button(SRP) I load scene which is addressable(UWP/HDRP).I encountered an error given below.
    Code (CSharp):
    1. Exception encountered in operation CompletedOperation, status=Failed, result=UnityEngine.ResourceManagement.ResourceProviders.SceneInstance : Exception of type 'UnityEngine.AddressableAssets.InvalidKeyException' was thrown., Key=URPScene, Type=UnityEngine.ResourceManagement.ResourceProviders.SceneInstance
    2. UnityEngine.ResourceManagement.AsyncOperations.<>c__DisplayClass55_0:<add_CompletedTypeless>b__0(AsyncOperationHandle`1)
    3.  
    4. Exception encountered in operation ChainOperation<SceneInstance> - InitializationOperation, status=Failed, result=UnityEngine.ResourceManagement.ResourceProviders.SceneInstance : ChainOperation of Type: UnityEngine.ResourceManagement.ResourceProviders.SceneInstance failed because dependent operation failed
    5. Exception of type 'UnityEngine.AddressableAssets.InvalidKeyException' was thrown., Key=URPScene, Type=UnityEngine.ResourceManagement.ResourceProviders.SceneInstance
    6. UnityEngine.ResourceManagement.ChainOperationTypelessDepedency`1:OnWrappedCompleted(AsyncOperationHandle`1)
    7. DelegateList`1:Invoke(AsyncOperationHandle`1) (at Library/PackageCache/com.unity.addressables@1.16.19/Runtime/ResourceManager/Util/DelegateList.cs:69)
    8. UnityEngine.ResourceManagement.ResourceManager:Update(Single)
    9. MonoBehaviourCallbackHooks:Update() (at Library/PackageCache/com.unity.addressables@1.16.19/Runtime/ResourceManager/Util/MonoBehaviourCallbackHooks.cs:26)
    10.  
    From what I understand,the addressables searches(in server) the hash file of SRP which cannot be found on server as it will only have URP/HDRP .hash files and .json files

    How to make this possible? Not sure if different pipelines will be supported for this purpose.