Xaml not found - unclear about how to preload XAML assets
Posted: 14 Jan 2025, 22:23
So I have a hard time understanding how to make sure that XAML assets are found.
In earlier documentation it was stated that some scene object needs to reference the asset. I've done that and that doesn't seem to do the trick.
Then I actively called xaml.Load(); on the asset that I have referenced in Start(). That works.
However now I have made my code a package, so the asset and the scene and the gameobject referencing it live in a package.
If I now import that package into a new project, open the scene and run it... it no longer works. I get "xaml not found", even though the same code works in the project where the package is created.
I'm confused on how to assure xamls are loadable at this point?
In earlier documentation it was stated that some scene object needs to reference the asset. I've done that and that doesn't seem to do the trick.
Then I actively called xaml.Load(); on the asset that I have referenced in Start(). That works.
However now I have made my code a package, so the asset and the scene and the gameobject referencing it live in a package.
If I now import that package into a new project, open the scene and run it... it no longer works. I get "xaml not found", even though the same code works in the project where the package is created.
I'm confused on how to assure xamls are loadable at this point?