如何使用统一插件从空中控制台包含.js和.css文件? [英] How to Include .js and .css file from air-console with unity plugin?
问题描述
我们正在尝试使用Unity插件创建一个空气控制台游戏.但是,.html包含.css和.js.我如何分开它们?
We are trying to create an air-console game using the Unity Plugin. However, the .html has both .css and .js included it. How can I separate them?
We have attempted to move the styles to a .css file and link to .html file by adding this line and This how my unity file directory appears.
<link rel="stylesheet" type="text/css" href="controller.css">
创建单独的.css文件会产生错误:: 无法加载资源:服务器响应状态为404(未找到)这是我们的错误正在获得.
Creating a separate .css file produces an error:: Failed to load resource: the server responded with a status of 404 (Not Found)This is the error we are getting.
如何在不出错的情况下将.css文件包含到unity插件中?
How can we Include .css file into unity plugin without running into error ?
推荐答案
确保将css文件放在WebGLTemplates/AirConsole文件夹中.
Make sure to have your css file within the folder WebGLTemplates/AirConsole.
这篇关于如何使用统一插件从空中控制台包含.js和.css文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!