【问题标题】:How to Include .js and .css file from air-console with unity plugin?如何使用统一插件包含来自空气控制台的 .js 和 .css 文件?
【发布时间】:2017-08-20 20:15:38
【问题描述】:

我们正在尝试使用 Unity 插件创建一个空调游戏。但是,.html 同时包含 .css 和 .js。我怎样才能将它们分开?

我们已尝试通过添加此行和This how my unity file directory appears 将样式移动到 .css 文件并链接到 .html 文件。

<link rel="stylesheet" type="text/css" href="controller.css">

创建单独的 .css 文件会产生错误:: 加载资源失败:服务器响应状态为 404 (Not Found)This is the error we are getting

我们如何才能将 .css 文件包含到 unity 插件中而不会出错?

【问题讨论】:

    标签: airconsole


    【解决方案1】:

    确保您的 css 文件位于 WebGLTemplates/AirConsole 文件夹中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-09-27
      • 2012-08-04
      • 1970-01-01
      • 2018-06-08
      • 2014-05-22
      • 2017-10-19
      • 2013-05-25
      • 1970-01-01
      相关资源
      最近更新 更多