Unity AssetImporter.GetAtPath 用法

来源:互联网 发布:08 经济危机 知乎 编辑:程序博客网 时间:2024/06/03 18:13



字面理解, 获取AssetImporter 在 某个路劲下

 

需要的路劲为  Assets为开头的项目的相对路劲


如: "Assets/Resouces/Character/Xiaoming.prefab"


string path = "Assets/Resouces/Character/Xiaoming.prefab";

AssetsImporter importer = AssetsImporter.GetAtPath(path);

importer.assetBundleName = "Character_xiaoming";

0 0