Skip to content

Instantly share code, notes, and snippets.

@mindryu
Last active October 27, 2015 16:35
Show Gist options
  • Save mindryu/bd9443fb4766f8e00c5e to your computer and use it in GitHub Desktop.
Save mindryu/bd9443fb4766f8e00c5e to your computer and use it in GitHub Desktop.
[Unity3D] Post Process Utility
using UnityEditor;
using UnityEngine;
public class AssetPostProcessLogger : AssetPostprocessor {
static void OnPostprocessAllAssets(
string[] importedAssets,
string[] deletedAssets,
string[] movedAssets, string[] movedFromAssetPaths
)
{
foreach (string asset in importedAssets)
{
Debug.Log("추가되거나 수정된 애셋: " + asset);
}
foreach (string asset in deletedAssets)
{
Debug.Log("삭제된 애셋: " + asset);
}
for (int i = 0; i < movedAssets.Length; i++)
{
string asset = movedAssets[i];
string from = movedFromAssetPaths[i];
Debug.Log("이동된 애셋: " + asset + " from " + from);
}
}
}
using UnityEngine;
using UnityEditor;
using System.Collections;
public class CostumeAudioImporter : AssetPostprocessor
{
void OnPreprocessAudio ()
{
AudioImporter audioImporter = assetImporter as AudioImporter;
if (audioImporter == null) return;
audioImporter.threeD = false;
audioImporter.hardware = true;
}
}
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment