Hi Guys,
So I am playing around with CUI for the first time, and finding myself in deep waters. I stubled upon an old thread where someone had an example.
My problem is, I cannot get the height of the panel smaller than the below, if I make it smaller the label doesn't appear? Here is my code
If I just change it to this
Then the label doesn't appear, and I have no clue as to why?
Any assistance is welcomed
So I am playing around with CUI for the first time, and finding myself in deep waters. I stubled upon an old thread where someone had an example.
My problem is, I cannot get the height of the panel smaller than the below, if I make it smaller the label doesn't appear? Here is my code
mainElement = container.Add(new CuiPanel {
Image =
{
Color = "0.1 0.1 0.1 1"
},
RectTransform =
{
AnchorMin = "0.800 0.450",
AnchorMax = "0.995 0.960" //left digit is viewheight from left, right digit is Y axis, viewheight from bottom
},
CursorEnabled = false,
}, "Hud", mainElementName);
container.Add(new CuiLabel {
Text =
{
Text = "Team",
FontSize = 15,
Align = TextAnchor.MiddleCenter
},
RectTransform =
{
AnchorMin = $"0.05 0.90",
AnchorMax = $"0.20 0.95"
}
}, mainElement);
CuiHelper.AddUi(player, container);If I just change it to this
RectTransform =
{
AnchorMin = "0.800 0.550",
AnchorMax = "0.995 0.960" //left digit is viewheight from left, right digit is Y axis, viewheight from bottom
},Then the label doesn't appear, and I have no clue as to why?
Any assistance is welcomed