Пример #1
0
        /// <summary>
        /// 設定を全て描画する
        /// </summary>
        protected void DrawAllSettings()
        {
            NCMBUTConnectionBase connection = target as NCMBUTConnectionBase;

            serializedObject.Update();

            connection.IsOpenOptions = EditorGUILayout.Foldout(connection.IsOpenOptions, optionsContent);

            ++EditorGUI.indentLevel;
            if (connection.IsOpenOptions)
            {
                if (connection.GetUseQuerySettings())
                {
                    DrawQuerySettings();
                }

                EditorGUILayout.Space();

                if (connection.GetUseFieldSettings())
                {
                    DrawFieldSettings();
                }

                EditorGUILayout.Space();

                if (connection.GetUseAclSettings())
                {
                    DrawAclSettings();
                }
            }
            --EditorGUI.indentLevel;

            if (GUI.changed)
            {
                serializedObject.ApplyModifiedProperties();
            }
        }
Пример #2
0
 /// <summary>
 /// コンストラクタ <see cref="NCMBUT.EditorTools.NCMBUTCustomQuerySettings"/>
 /// </summary>
 /// <param name="custom">エディタルートクラス</param>
 public NCMBUTCustomQuerySettings(NCMBUTCustomEditorBase custom)
 {
     customEditor = custom;
     connection   = custom.target as NCMBUTConnectionBase;
 }