Project_WL/AgentScripts/WL_Refresh.cs

13 lines
405 B
C#

// WL_Refresh.cs — AssetDatabase.Refresh() 만 호출한다(새로 만든 Assets 하위 스크립트를 Unity 가 인식하게).
// unity command run_script --file AgentScripts/WL_Refresh.cs --entry WL_Refresh.Go
using UnityEditor;
public static class WL_Refresh
{
public static object Go()
{
AssetDatabase.Refresh(ImportAssetOptions.ForceUpdate);
return "refreshed";
}
}