static void CreatePureData()
        {
            GameObject gameObject;
            PureData   existingPureData = Object.FindObjectOfType <PureData>();

            if (existingPureData == null)
            {
                gameObject      = new GameObject();
                gameObject.name = "PureData";
                gameObject.AddComponent <PureData>();
                PureDataPluginManager.CheckPlugins();
                Undo.RegisterCreatedObjectUndo(gameObject, "Pure Data Created");
            }
            else
            {
                gameObject = existingPureData.gameObject;
            }

            Selection.activeGameObject = gameObject;
        }
Ejemplo n.º 2
0
 void StartLibPD()
 {
     PureDataPluginManager.ResolvePath();
     SetAudioSettings();
     OpenAudio();
 }