Using JSON from editor with Rust CUI?
Hello :D
Are there any way to use the json output from this site:
http://rust-cui.surge.sh/#!/editor directly into the code?(with custom var etc)
?
Example Json From Site:
[
  {
    "name": "4ad3-0a08-f25e",
    "parent": "Hud",
    "components": [
      {
        "type": "UnityEngine.UI.Button",
        "command": "",
        "close": "",
        "color": "0.31 0.31 0.31 1"
      },
      {
        "type": "RectTransform",
        "anchormin": "0.016 0.749",
        "anchormax": "0.095 0.888"
      }
    ]
  },
  {
    "name": "0f41-1915-d90f",
    "parent": "4ad3-0a08-f25e",
    "components": [
      {
        "type": "UnityEngine.UI.Text",
        "color": "1 1 1 1",
        "fontSize": 14,
        "align": "MiddleCenter"
      },
      {
        "type": "RectTransform",
        "anchormin": "0 0",
        "anchormax": "1 1"
      }
    ]
  },
  {
    "name": "5967-674d-2878",
    "parent": "Hud",
    "components": [
      {
        "type": "UnityEngine.UI.Text",
        "color": "1 1 1 1",
        "fontSize": 14,
        "align": "MiddleCenter"
      },
      {
        "type": "RectTransform",
        "anchormin": "0.052 0.929",
        "anchormax": "0.074 0.951"
      }
    ]
  }
]​

Thank you
I use this:
jsonGUI = CuiHelper.FromJson(JSON_STRING);​

CuiHelper.AddUi(player, jsonGUI);
thank you ^^