public override void OnInspectorGUI()
        {
            serializedObject.Update();
            base.OnInspectorGUI();
            EditorGUILayout.PropertyField(m_Visible);
            EditorGUILayout.PropertyField(m_EffectType);
            EditorGUILayout.PropertyField(m_EnabledGradient);

            if (m_EffectType.enumValueIndex != 0)
            {
                EditorGUILayout.PropertyField(m_EffectColor);
                EditorGUILayout.PropertyField(m_EffectDistance);
                EditorGUILayout.PropertyField(m_UseGraphicAlpha);
            }
            if (m_EnabledGradient.boolValue)
            {
                EditorGUILayout.PropertyField(m_GradientColor);
            }
            EditorGUILayout.PropertyField(imagePathRoot);

            if (GUILayout.Button("clear InlineImage"))
            {
                foreach (Object target in this.targets)
                {
                    OutLineText text = target as OutLineText;
                    if (text != null)
                    {
                        text.ClearUnUsedInlineImage();
                    }
                }
            }
            EditorGUILayout.PropertyField(charOffests, true);
            serializedObject.ApplyModifiedProperties();
        }
        static void CreatePanel()
        {
            GameObject spriteObject = new GameObject("Text");

            if (Selection.activeGameObject != null)
            {
                spriteObject.transform.parent = Selection.activeGameObject.transform;
                spriteObject.layer            = Selection.activeGameObject.layer;
            }
            else
            {
                Canvas mainCanvas = GameObject.FindObjectOfType <Canvas>();
                if (mainCanvas != null)
                {
                    spriteObject.transform.parent = Selection.activeTransform.transform;
                    spriteObject.layer            = Selection.activeGameObject.layer;
                }
            }

            OutLineText t = spriteObject.AddComponent <OutLineText>();

            t.supportRichText = false;
            t.raycastTarget   = false;
            Selection.objects = new Object[] { spriteObject };
        }