构建后Unity3d 4.5.0缺少纹理 [英] Unity3d 4.5.0 missing textures after build

查看:105
本文介绍了构建后Unity3d 4.5.0缺少纹理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在unity3d中:

In the unity3d:

为Windows构建后没有纹理:

After build for windows no textures:

发生了什么事?

更新:

这是我的项目文件夹:

这是带有TerrainGenerator脚本的TerrainGenerator对象.在这里,我附加了所有纹理.但仍然无法正常工作.

And this is TerrainGenerator object with TerrainGenerator script. Here i attached all textures. But still not working..

推荐答案

解决方案

要解决此问题,您需要在<Your project directory>/Assets文件夹中创建名称为Resources的文件夹.并在那里移动纹理.

Solution

To fix this issue you need to create folder with name Resources in <Your project directory>/Assets folder. And move your textures there.

通常,在构建应用程序时,Unity将仅以某种方式从您的项目中引用资产(在场景,项目设置中,也许在其他地方).但是,它不会分析您的来源(因为通常这是不可能的).这就是为什么纹理不包含在构建中的原因.

Usually, when building an application Unity will only take assets that are referenced somehow from your project (in scenes, in project settings, maybe somewhere else). But it doesn't analyze your sources (because it's not possible, in general). This is why your textures are not included in your build.

但是有特殊的文件夹名称:Resources.如果将名称为Resources的文件夹放在<Your project directory>/Assets文件夹或其子文件夹之一(您可以有多个Resources文件夹)中,则Unity将包括其中的所有资产.

But there is special folder name: Resources. If you put folder with name Resources in <Your project directory>/Assets folder or in one of its sub-folders (you can have multiple Resources folders) then Unity will include every asset from it.

这篇关于构建后Unity3d 4.5.0缺少纹理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆