Beispiel #1
0
        private void OnPreprocessAsset()
        {
            if (!assetImporter.importSettingsMissing)
            {
                return;
            }

            if (!IsPresetAsset(assetImporter.assetPath))
            {
                return;
            }

            string path = Path.GetDirectoryName(assetPath);

            if (string.IsNullOrEmpty(path))
            {
                return;
            }

            if (!PresetManagerStorage.IsInstanceAvailable())
            {
                return;
            }

            PresetManagerUtils.ApplySettingsToAsset(path, assetImporter);
        }
Beispiel #2
0
        private void OnPreprocessAsset()
        {
            if (!assetImporter.importSettingsMissing)
            {
                return;
            }

            if (IsPresetAsset(assetImporter.assetPath))
            {
                PresetManagerUtils.ProjectPresetsChanged();
                return;
            }

            string path = Path.GetDirectoryName(assetPath);

            if (string.IsNullOrEmpty(path))
            {
                return;
            }

            PresetManagerUtils.ApplySettingsToAsset(path, assetImporter);
        }