Insanely huge initial commit

This commit is contained in:
2026-02-21 17:04:05 -08:00
parent 9cdd36191a
commit 613d75914a
22525 changed files with 4035207 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
namespace MoreMountains.Tools
{
[CustomEditor(typeof(MMRadioSignal), true)]
[CanEditMultipleObjects]
public class MMRadioSignalEditor : Editor
{
protected MMRadioSignal _radioSignal;
protected float _inspectorWidth;
protected SerializedProperty _duration;
protected SerializedProperty _currentLevel;
public override bool RequiresConstantRepaint()
{
return true;
}
protected virtual void OnEnable()
{
_radioSignal = target as MMRadioSignal;
_duration = serializedObject.FindProperty("Duration");
_currentLevel = serializedObject.FindProperty("CurrentLevel");
}
public override void OnInspectorGUI()
{
serializedObject.Update();
_inspectorWidth = EditorGUIUtility.currentViewWidth - 24;
DrawProperties();
serializedObject.ApplyModifiedProperties();
}
protected virtual void DrawProperties()
{
DrawPropertiesExcluding(serializedObject, "AnimatedPreview", "CurrentLevel");
}
}
}