ドキュメント

Unity Engine

Unity Engine

FileModeChanged(string[], FileMode)

Unity calls this method when file mode has been changed for one or more files.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

FileModeChanged()

public void FileModeChanged(string[] arg0, FileMode fileMode)

Parameters

arg0

string[]

fileMode

FileMode

Remarks

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

Examples

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); }}