コード例 #1
0
        public static void AddUserInfoButton(Transform button)
        {
            if (!_UIInitialized)
            {
                return;
            }

            OnUserInfoButtonAdd?.Invoke(button);
        }
コード例 #2
0
        public static VRCEUiButton AddUserInfoButton(string name, string text, Action clickAction)
        {
            if (!_UIInitialized)
            {
                return(null);
            }
            VRCEUiButton button = new VRCEUiButton(name, new Vector2(0f, 0f), text);

            button.OnClick += clickAction;

            OnUserInfoButtonAdd?.Invoke(button.Control);
            return(button);
        }