Forum rules - please read before posting.

Loading addressable content from multiple Unity projects

Hi, everyone! Long time lurker and developer, first time poster. :)

Has anyone ever tried breaking an Adventure Creator game into multiple Unity projects and loading the content as addressables, per this workflow https://docs.unity.cn/Packages/com.unity.addressables@1.18/manual/MultiProject.html ?

I've been playing around with it with non-AC projects, and am not sure how feasible this is with Adventure Creator based on how the game engine is set up. (If I load a scene from a content project, would it need to include all of the same managers as the core project? The duplication there could get fairly unwieldy.)

Thanks in advance!

Comments

  • Welcome to the community, @cidney.

    I haven't tried it myself, but I'd hazard a guess that it should be possible.

    Your main project would need to have AC and all your Managers etc present, as well as an initial AC scene. When a project runs its first AC scene, it caches its Manager references - so they should remain referencing the main project's set throughout the game.

    AC scenes don't make references to Managers - instead relying on these cached references. You would need to make sure that the scenes in your content project reference the same Manager content (e.g. the same Inventory items with the same IDs etc). This'd mean that both your projects need to have identical Manager assets. I'd expect the workflow would be to make your game in the content project, then copy the Managers into your main project when ready to run.

    However, so long as you don't make the Managers addressable, it should be the case that they won't get brought in as duplicates.

    The same would go for your Player character, if you've assigned them in your Settings Manager to be spawned automatically.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.