コード例 #1
0
        /// <summary>
        /// Call this method to draw the parent states in the gui.
        /// </summary>
        public void OnGUI()
        {
            if (s_Styles == null)
            {
                s_Styles = new ParentStatesEditor.Styles();
            }

            // Save indentlevel
            int indentLevel = EditorGUI.indentLevel;

            EditorGUI.indentLevel = 0;

            this.DrawHeader();
            if (m_SerialProp.isExpanded)
            {
                this.DrawStates();
                this.DrawFooter();
            }

            // Restore indent level
            EditorGUI.indentLevel = indentLevel;
        }
コード例 #2
0
        /// <summary> 
        /// Call this method to draw the parent states in the gui.
        /// </summary>
        public void OnGUI () {
            if (s_Styles == null)
                s_Styles = new ParentStatesEditor.Styles();

            // Save indentlevel
            int indentLevel = EditorGUI.indentLevel;
            EditorGUI.indentLevel = 0;

            this.DrawHeader();
            if (m_SerialProp.isExpanded) {
                this.DrawStates();
                this.DrawFooter();
            }

            // Restore indent level
            EditorGUI.indentLevel = indentLevel;
        }