Exemple #1
0
        void LoadPreset(string presetType, string path)
        {
            PresetManager pm = containingAtom.GetComponentInChildren <PresetManager>(includeInactive: true);

            pm.itemType = PresetManager.ItemType.Atom;

            JSONStorable    js             = containingAtom.GetStorableByID(presetType);
            JSONStorableUrl presetPathJSON = js.GetUrlJSONParam("presetBrowsePath");

            presetPathJSON.val = SuperController.singleton.NormalizePath(path);
            js.CallAction("LoadPreset");
        }