public override void OnInspectorGUI() { cinemaAudio.Update(); EditorGUILayout.PropertyField(firetime); EditorGUILayout.PropertyField(duration); EditorGUILayout.PropertyField(inTime); EditorGUILayout.PropertyField(outTime); EditorGUILayout.PropertyField(m_Path); cinemaAudio.ApplyModifiedProperties(); if (GUILayout.Button("打开音效资源")) { EffectSelector.Show(Callback, "Sounds", false); } }
public static void Show(Callback callback, string path, bool extension = true) { if (Instance != null) { Instance.Close(); Instance = null; } EffectSelector comp = GetWindow <EffectSelector>("选择资源"); comp.Path = path; comp.m_Extension = extension; comp._callback = callback; comp.Show(); }
public void OpenParticle() { EffectSelector.Show(Callback, "Resources\\Effect"); }