コード例 #1
0
 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);
     }
 }
コード例 #2
0
    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();
    }
コード例 #3
0
 public void OpenParticle()
 {
     EffectSelector.Show(Callback, "Resources\\Effect");
 }