/*public void UpdateAnims()
         * {
         *      mTarget.Update();
         * }*/

        public override void OnInspectorGUI()
        {
            mMakeMaterialDirty = mMakeVerticesDirty = false;

                        #if UNITY_5_6_OR_NEWER
            serializedObject.UpdateIfRequiredOrScript();
                        #else
            serializedObject.UpdateIfDirtyOrScript();
                        #endif
            //mRectPivot = mTarget.mRectPivot;

            EditorGUIUtility.labelWidth = 50;

            GUILayout.BeginHorizontal();
            GUILayout.Space(-15);


            GUI.backgroundColor = Color.Lerp(Color.black, Color.gray, 1);
            GUILayout.BeginVertical(I2_InspectorTools.GUIStyle_Background, GUILayout.Height(1));
            GUI.backgroundColor = Color.white;

            OnGUI_Animations();

            GUITools.OnGUI_Footer("I2 TextAnimation", I2_InspectorTools.GetVersion(), I2_InspectorTools.HelpURL_forum, I2_InspectorTools.HelpURL_Documentation, I2_InspectorTools.HelpURL_AssetStore);

            EditorGUIUtility.labelWidth = 0;

            GUILayout.EndVertical();
            GUILayout.EndHorizontal();
            if (serializedObject.ApplyModifiedProperties() || mMakeMaterialDirty || mMakeVerticesDirty)
            {
                SceneView.RepaintAll();
            }
        }
        public override void OnInspectorGUI()
        {
                        #if UNITY_5_6_OR_NEWER
            serializedObject.UpdateIfRequiredOrScript();
                        #else
            serializedObject.UpdateIfDirtyOrScript();
                        #endif

            EditorGUIUtility.labelWidth = 50;

            GUI.backgroundColor = Color.Lerp(Color.black, Color.gray, 1);
            GUILayout.BeginVertical(I2_InspectorTools.GUIStyle_Background, GUILayout.Height(1));
            GUI.backgroundColor = Color.white;


            //--[ HEADER ]----------------------
            if (GUILayout.Button("SE Animation", I2_InspectorTools.GUIStyle_Header))
            {
                //Application.OpenURL(SE_InspectorTools.HelpURL_Documentation);
            }

            GUILayout.Space(5);

            //--[ INSPECTOR ]---------------------

            EditorGUI.BeginChangeCheck();

            mInspector.OnGUI_Animation();

            if (EditorGUI.EndChangeCheck() || mDirty)
            {
                mDirty = false;
                var data = SE_Animation.SaveSerializedData(mInspector.mAnimation);
                if (mProp_SerializedData.stringValue != data)
                {
                    mProp_SerializedData.stringValue = data;
                    //Debug.Log(data);
                }
            }

            //--[ FOOTER ]-------------------------
            GUILayout.Space(10);
            GUILayout.FlexibleSpace();

            GUITools.OnGUI_Footer("I2 TextAnimation", I2_InspectorTools.GetVersion(), I2_InspectorTools.HelpURL_forum, I2_InspectorTools.HelpURL_Documentation, I2_InspectorTools.HelpURL_AssetStore);

            EditorGUIUtility.labelWidth = 0;

            GUILayout.EndVertical();

            serializedObject.ApplyModifiedProperties();
        }