代码管理资源属性

Posted Hichy

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了代码管理资源属性相关的知识,希望对你有一定的参考价值。

最主要使用的类:    
    AssetDatabase

代码改变Texture属性,读取标记改为True
        string path = AssetDatabase.GetAssetPath(BulletTrack);
        TextureImporter A = (TextureImporter)AssetImporter.GetAtPath(path);
        A.isReadable = true;
        AssetDatabase.ImportAsset(pathImportAssetOptions.ForceUpdate);



以上是关于代码管理资源属性的主要内容,如果未能解决你的问题,请参考以下文章