vkerob
Topic Author
Posts: 2
Joined: 08 Oct 2019, 19:26

[Beginner] - 2d Overlay

12 Dec 2019, 19:49

Hello,

I'm attempting to display a simple <Grid> with <Label> over my Unity Scene. I see the Xaml loaded and rendered, but quickly disappears when my Unity scene loads. I'd imagine this is a simple error on my part, but I'd like the reach out and see what to do (so I can move on to the cooler parts of this plugin). I've placed the following Xaml on a default NoesisView which is located on a MainCamera:
<UserControl x:Class="UI.HudTest"
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
			 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
			 xmlns:vm="clr-namespace:MVVM.ViewModels"
			 mc:Ignorable="d"
			 d:DesignWidth="1920" 
			 d:DesignHeight="1080">
	<Grid Margin="25"
          HorizontalAlignment="Stretch"
          VerticalAlignment="Stretch">
        <Label Content="HUD" 
			   FontSize="72" 
			   Foreground="White" 
			   Margin="0,0,0,25"
               VerticalAlignment="Bottom"
               HorizontalAlignment="Center">
        </Label>
    </Grid>
</UserControl>

Tags:
 
User avatar
jsantos
Site Admin
Posts: 2906
Joined: 20 Jan 2012, 17:18
Contact:

Re: [Beginner] - 2d Overlay

16 Dec 2019, 19:06

Is this marked as solved because you found what was going on? Does it happen with the provided samples?

Who is online

Users browsing this forum: No registered users and 2 guests