控制器背景图像不工作
Controller background image not working
背景颜色工作正常,但我无法让背景图像工作。它只显示背景颜色。图片与控制器文件位于同一文件夹中。我正在使用统一。 Picture of the phone。谢谢!
controller.html
<head>
<style>
body {
background-image: url(background.png);
background-color: white;
}
</style>
</head>
您忘记在 url("background.png")
中添加引号
控制器的资产需要在 Assets/WebGLTemplates/AirConsole。
我假设您的控制器(您正在处理的文件)不在那个文件夹中,而是在项目的其他地方。
WebGLTemplates 文件夹中有一个控制器文件,但该文件会自动更新以镜像场景中 AirConsole 对象中链接的文件。
背景颜色工作正常,但我无法让背景图像工作。它只显示背景颜色。图片与控制器文件位于同一文件夹中。我正在使用统一。 Picture of the phone。谢谢!
controller.html
<head>
<style>
body {
background-image: url(background.png);
background-color: white;
}
</style>
</head>
您忘记在 url("background.png")
中添加引号
控制器的资产需要在 Assets/WebGLTemplates/AirConsole。
我假设您的控制器(您正在处理的文件)不在那个文件夹中,而是在项目的其他地方。
WebGLTemplates 文件夹中有一个控制器文件,但该文件会自动更新以镜像场景中 AirConsole 对象中链接的文件。