public static void AddUserInfoButton(Transform button) { if (!_UIInitialized) { return; } OnUserInfoButtonAdd?.Invoke(button); }
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); }