Hi All,
thanks for amazing help with my last issue.
I am few stepd further in my work, but I have encountered another Problem:
I want to create a sort of Splashscreen for my app in form of Floating Panel connected to the camera (so that it does not move in respect to camera).
I am trying to use UI.root element with to which I set .XML file as DefaultStyle.
I get a White rectangle behaving the way I want, but cannot Control what happens within it.
Would someone be so kind to post sample .XML with Explanation how to make it work?
my XML:
<?xml version="1.0"?>
<!-- element type="Window">
<attribute name="Position" value="100 100" />
<attribute name="Size" value="380 120" />
< element type="Button">
<attribute name="Name" value="ToggleLight1" />
<attribute name="Position" value="20 20" />
<attribute name="Size" value="140 30" />
<element type="Text">
<attribute name="Horiz Alignment" value="Center" />
<attribute name="Vert Alignment" value="Center" />
<attribute name="Top Left Color" value="1 1 1 1" />
<attribute name="Top Right Color" value="1 1 1 1" />
<attribute name="Bottom Left Color" value="1 1 1 1" />
<attribute name="Bottom Right Color" value="1 1 1 1" />
<attribute name="Text" value="Toggle light 1" />
</element >
</element >
<element type="BorderImage">
<attribute name="Name" value="Texture" />
<attribute name="Position" value="20 20" />
<attribute name="Size" value="140 30" />
<attribute name="Blend Mode" value="alpha" />
<attribute name="Border" value="4 4 4 4" />
<attribute name="Image Rect" value="0 0 16 16" />
<attribute name="Texture" value="Texture2D;Textures/Earth.jpg" />
</element>
</element >
I know that indentations are off, but they are fine in my Version
The BorderImage does is not shown at all