Hi!
I’m trying to load 3 scenes with baked lights into one scene (illumination is different for each). I tried the solution on Load multiple scene but currently i’m struggling with getting the scene references.
Using
From the details you’ve shared, to correctly define an array of scenes you want to load in your component, you should stick to using AssetReference for each scene reference. The line:
is appropriate for loading scenes. However, make sure that the scenes you are trying to reference are indeed set up as asset references in your project.
As to your question about the type of scenes, you can use either Unity scenes or Needle-specific scenes, as long as they conform to AssetReference. The scenes must be properly configured and accessible within the context of your project.
If you are facing issues with the @type that is shown (like in that image), ensure that the scenes you have in your project are accessible and correctly referenced as assets in Unity.
For example, if you want to load scenes in your script, ensure they are listed in the Unity Inspector for your component:
You can then use scene.loadAssetAsync() to load each scene within your implementation, as illustrated in the LoadingScenes class example (see the documentation).
Feel free to share any further specifics, or reach out if you encounter additional challenges!
1 replies left - Get a PRO license for more AI replies. thread_CTe801Qnfi2KRifddCOOjZ6B Reply to this message to continue the conversation