Cannot find Image in Unity
Posted: 27 Sep 2021, 14:50
Hi
I am trying to get to grips with Noesis and am trying to load an image as a background for a UI screen.
The following works fine in blend:
But throws the following error in Unity...
[NOESIS/E] Assets/GUI/XAML/NewWindow2.xaml(22): Image not found 'Assets/Images/mapeditor.jpg'
I've tried removing the initial '/' & also added a specific dependency
but nothing seems to work.
Am I missing something really simple here?
I am trying to get to grips with Noesis and am trying to load an image as a background for a UI screen.
The following works fine in blend:
Code: Select all
<Grid>
<Viewbox x:Name="Background" Stretch="UniformToFill">
<Viewbox.Effect>
<BlurEffect Radius ="4"/>
</Viewbox.Effect>
<Image Source="/Assets/Images/mapeditor.jpg"/>
</Viewbox>
</Grid>
[NOESIS/E] Assets/GUI/XAML/NewWindow2.xaml(22): Image not found 'Assets/Images/mapeditor.jpg'
I've tried removing the initial '/' & also added a specific dependency
Code: Select all
<noesis:Xaml.Dependencies>
<noesis:Dependency Source="/Assets/Images/mapeditor.jpg"/>
</noesis:Xaml.Dependencies>
Am I missing something really simple here?