-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDoremiMusic.cs
executable file
·32 lines (26 loc) · 984 Bytes
/
DoremiMusic.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
[CreateAssetMenu(fileName = "New Doremi Multichannel Loop", menuName = "Doremi Audio Engine/Multichannel Loop")]
public class DoremiMusic : ScriptableObject {
public List<AudioClip> audio;
public int loopEndSamples;
public int loopStartSamples;
}
// [CustomEditor(typeof(DoremiMusic))]
// public class DoremiMusicEditor : Editor {
// SerializedProperty audio;
// SerializedProperty loopEndSamples;
// SerializedProperty loopStartSamples;
// void OnEnable() {
// audio = serializedObject.FindProperty("audio");
// loopEndSamples = serializedObject.FindProperty("loopEndSamples");
// loopStartSamples = serializedObject.FindProperty("loopStartSamples");
// }
// public override void OnInspectorGUI() {
// serializedObject.Update();
// EditorGUILayout.PropertyField(audio);
// serializedObject.ApplyModifiedProperties();
// }
// }