【发布时间】:2013-04-12 02:43:48
【问题描述】:
我正在尝试从Resources 文件夹加载Texture,但它不断返回null。
t = (Texture)Resources.Load("Circle") as Texture;
圆形纹理的扩展名为.tga。
【问题讨论】:
-
什么编程语言?
-
为你添加了 C# 标签。
-
为什么要转换成 Texture,然后再尝试将结果解析成 Texture?
-
t = Resources.Load("Circle") as Texture;
-
我也尝试过这种方式,我认为可能没有投射它可能是问题所在。
标签: c# resources unity3d textures