Call a method via CUI button?Solved
Hi,
How should I put it on the command line to make a call, in this case, my void is as a chat command:
(BasePlayer player, string command, string [] args)

For exemple:
{
    "name": "63cf-2aad-0d37",
    "parent": "Hud",
    "components": [
      {
        "type": "UnityEngine.UI.Button",
        "command": "",
        "close": "",
        "color": "0.31 0.31 0.31 1"
      },
      {
        "type": "RectTransform",
        "anchormin": "0.02 0.826",
        "anchormax": "0.098 0.965"
      }
    ]
  },​

Tks!

You cannot call any methods, but you can run commands (console ones).
5b6ed4c9ac8e4.jpg misticos
You cannot call any methods, but you can run commands (console ones).

Right, tks

Locked automatically