1. Code:
                var elements = new CuiElementContainer();
                var mainName = elements.Add(new CuiPanel
                {
                    Image =
                    {
                        Color = "0.1 0.1 0.1 1"
                    },
                    RectTransform =
                    {
                        AnchorMin = "",
                        AnchorMax = ""
                    },
                    CursorEnabled = true
                });
    I created CuiPanel. What values should be in
    Code:
                      AnchorMin = "",
                        AnchorMax = ""
    
    to make this panel at the center with size like this > Instant Screen Grabbing App ? Where can i watch how to create buttons and etc with size which i need?
     
  2. Wulf

    Wulf Community Admin

    That would give you raw JSON, not for use with the helper.
     
  3. i mean the anchors are staying the same :p
     
  4. To center your UI you have to put width from your left screen border to your left UI border and your left screen border to your right UI border.
    If you put
    Code:
     var elements = new CuiElementContainer();
                var mainName = elements.Add(new CuiPanel
                {
                    Image =
                    {
                        Color = "0.1 0.1 0.1 1"
                    },
                    RectTransform =
                    {
                        AnchorMin = "0.15 0",
                        AnchorMax = "0.85 1"
                    },
                    CursorEnabled = true
                });
    0.15 is the distance from left to left ( screen to UI )
    0.85 is the distance from left to right (screen to UI )
    0 is the distance from bottom of your screen to bottom of your UI
    1 is the distance from bottom of your screen to top of your UI
     
  5. Thank u
     
  6. OH MY F*CKING GOD!
    This is the best tool ever!
    Who made it?
    Does it have open source code?
    Where I can donate to this godlike human being?!