Version: 2021.1
언어: 한국어

AssetModificationProcessor.FileModeChanged(string[],FileMode)

매뉴얼로 전환

설명

Unity calls this method when file mode has been changed for one or more files.

Array of strings specifies changed files. FileMode specifies new file mode. This method must be static if implemented.

using UnityEngine;
using UnityEditor.VersionControl;

class CustomAssetModificationProcessor : UnityEditor.AssetModificationProcessor { static void FileModeChanged(string[] paths, FileMode mode) { Debug.Log($"{nameof(FileModeChanged)} ({mode}):"); foreach (var path in paths) Debug.Log(path); } }