MB3_DisableHiddenAnimationsEditor.cs 719 B

12345678910111213141516171819
  1. using UnityEngine;
  2. using System.Collections;
  3. using UnityEditor;
  4. using DigitalOpus.MB.Core;
  5. namespace DigitalOpus.MB.MBEditor
  6. {
  7. [CustomEditor(typeof(MB3_DisableHiddenAnimations))]
  8. public class MB3_DisableHiddenAnimationsEditor : Editor
  9. {
  10. public override void OnInspectorGUI()
  11. {
  12. EditorGUILayout.HelpBox(
  13. "HOW TO USE \n\nPlace this component on the same game object that has the combined SkinMeshRenderer " +
  14. "\n\n Drag game objects with Animator and/or Animation components that were baked into the combined SkinnedMeshRenderer into the lists below", MessageType.Info);
  15. DrawDefaultInspector();
  16. }
  17. }
  18. }