1. mTrX

    mTrX Scavenger

    So, my UI buttons seem to be buggy. I assign a text to them on creation, once i press the button, the text is disappearing but I'm not closing any UI elements.

    UI JSON:
    Code (Text):

    [
      {
        "name": "test",
        "parent": "Overlay",
        "fadeOut": "0",
        "components": [
          {
            "type": "UnityEngine.UI.Button",
            "command": "chat.say Hi",
            "close": "",
            "material": "Assets/Icons/IconMaterial.mat",
            "color": "0 1 0 0.5",
            "fadeIn": "0"
          },
          {
            "type": "RectTransform",
            "anchormin": "0.1 0.8",
            "anchormax": "0.2 0.9"
          }
        ]
      },
      {
        "name": "",
        "parent": "test",
        "fadeOut": "0",
        "components": [
          {
            "type": "UnityEngine.UI.Text",
            "text": "Chat",
            "fontSize": "14",
            "font": "RobotoCondensed-Bold.ttf",
            "align": "MiddleCenter",
            "color": "1 1 1 1",
            "fadeIn": "0"
          }
        ]
      }
    ]

     
    Json mistake here or rust issue? Can't solve it.

    Edit: Solved. If close is empty in the container it's removing all items with no names given. Simply assign a name solved it.