Page 1 of 1

Referencing xaml dependencies contained in other assemblies

Posted: 15 Jan 2025, 23:51
by KeldorKatarn
I'm trying to reference a xaml contained in another assembly in Unity. But I seem to keep getting xaml not found
What is wrong about this?
Full pack URI starting with pack://application:,,,/ doesn't seem to work either


<noesis:Xaml.Dependencies>
<noesis:Dependency Source="/Noesis.NoesisGUI;component/Theme/NoesisTheme.DarkBlue.xaml" />
</noesis:Xaml.Dependencies>

Re: Referencing xaml dependencies contained in other assemblies

Posted: 16 Jan 2025, 10:53
by jsantos
This should work
<ResourceDictionary Source="/Packages/com.noesis.noesisgui/Theme/NoesisTheme.DarkBlue.xaml"/>

Re: Referencing xaml dependencies contained in other assemblies

Posted: 16 Jan 2025, 16:32
by KeldorKatarn
That works, thanks :) Is there also a way to reference a package in Unity, if say, unity imports it from GitHub?

Can I say
<ResourceDictionary Source="/Library/PackageCache/com.my.package/Folder/Filename.xaml"/> ?

Re: Referencing xaml dependencies contained in other assemblies

Posted: 20 Jan 2025, 12:52
by jsantos
I don't think this is possible. Other than using '/Packages/com.noesis.noesisgui/', I am not aware of any alternative methods to reference a package.