UnityEditor 查找和获取内置资源
作者:互联网
Object[] UnityAssets = AssetDatabase.LoadAllAssetsAtPath("Resources/unity_builtin_extra");
foreach (var asset in UnityAssets) {
Debug.Log(asset);
}
Debug.Log("===================================");
Debug.Log(Shader.Find("Sprites/Default"));
var mat1 = AssetDatabase.GetBuiltinExtraResource<Material>("Sprites-Default.mat");
Debug.Log($"mat1:{mat1}");
标签:UnityAssets,内置,Log,mat1,UnityEditor,var,查找,asset,Debug 来源: https://www.cnblogs.com/kingBook/p/16627195.html