chore: initial commit
This commit is contained in:
14261
Assets/Feel/MMTools/Accessories/Editor/MMCurves/MMAntiCurves.curves
Normal file
14261
Assets/Feel/MMTools/Accessories/Editor/MMCurves/MMAntiCurves.curves
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f9bd36e0fdcb17346bb804d148559eb2
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
14182
Assets/Feel/MMTools/Accessories/Editor/MMCurves/MMCurves.curves
Normal file
14182
Assets/Feel/MMTools/Accessories/Editor/MMCurves/MMCurves.curves
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d7ae097ceef007248a49d4df212cceb7
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,50 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace MoreMountains.Tools
|
||||
{
|
||||
/// <summary>
|
||||
/// A custom editor displaying a foldable list of MMFeedbacks, a dropdown to add more, as well as test buttons to test your feedbacks at runtime
|
||||
/// </summary>
|
||||
[CanEditMultipleObjects]
|
||||
[CustomEditor(typeof(MMPlotter), true)]
|
||||
public class MMPlotterEditor : Editor
|
||||
{
|
||||
protected string[] _typeDisplays;
|
||||
protected string[] _excludedProperties = new string[] { "TweenMethod", "m_Script" };
|
||||
|
||||
protected MMPlotter _mmPlotter;
|
||||
|
||||
protected virtual void OnEnable()
|
||||
{
|
||||
_mmPlotter = target as MMPlotter;
|
||||
_typeDisplays = _mmPlotter.GetMethodsList();
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
serializedObject.Update();
|
||||
Undo.RecordObject(target, "Modified Plotter");
|
||||
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.LabelField("Tween Method", EditorStyles.boldLabel);
|
||||
|
||||
_mmPlotter.TweenMethodIndex = EditorGUILayout.Popup("Tween Method", _mmPlotter.TweenMethodIndex, _typeDisplays, EditorStyles.popup);
|
||||
|
||||
//int newItem = EditorGUILayout.Popup(0, _typeDisplays) - 1;
|
||||
//DrawDefaultInspector();
|
||||
DrawPropertiesExcluding(serializedObject, _excludedProperties);
|
||||
|
||||
if (GUILayout.Button("Draw Graph"))
|
||||
{
|
||||
_mmPlotter.DrawGraph();
|
||||
}
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7e2bca92e67ccd243a920ed5311a183e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user