コード例 #1
0
    public static bool GuideJoinMaster(T23_Master master, UdonSharpBehaviour body, int gid, int category)
    {
        if (!UdonSharpEditorUtility.IsProxyBehaviour(body))
        {
            UdonSharpGUI.DrawConvertToUdonBehaviourButton(body);
            return(false);
        }

        if (master == null)
        {
            EditorGUILayout.HelpBox("Master に組み込まれていません。 このままでも動作しますが、次のボタンで Master に組み込むことができます。", MessageType.Info);
            if (GUILayout.Button("Join Master"))
            {
                EditorApplication.delayCall += () => T23_Master.JoinMaster(body, gid, category);
            }
        }
        return(true);
    }