Unity 在Resources加载类型的文件

Type type = Resources.Load("", typeof(Type)) as Type;

例:

Material weapon = Resources.Load("***", typeof(Material)) as Material;

原文地址:https://www.cnblogs.com/Colored-Mr/p/6260558.html