背景颜色工作正常,但我无法让背景图像工作。它只显示背景颜色。图片与 Controller 文件位于同一文件夹中。我正在使用统一。 Picture of the phone .谢谢!
controller.html
<head>
<style>
body {
background-image: url(background.png);
background-color: white;
}
</style>
</head>
最佳答案
Controller 的资源需要在 Assets/WebGLTemplates/AirConsole 中。
我假设您的 Controller (您正在处理的文件)不在那个文件夹中,而是在元素的其他地方。
WebGLTemplates 文件夹中有一个 Controller 文件,但该文件会自动更新以镜像场景中 AirConsole 对象中链接的文件。
关于html - Controller 背景图像不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33359316/