19178

How to Include .js and .css file from air-console with unity plugin?

Question:

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 <a href="https://i.stack.imgur.com/rYBFN.png" rel="nofollow">This how my unity file directory appears</a>.

<pre class="snippet-code-html lang-html prettyprint-override"><link rel="stylesheet" type="text/css" href="controller.css">

Creating a separate .css file produces an error:: Failed to load resource: the server responded with a status of 404 (Not Found)<a href="https://i.stack.imgur.com/kcH5h.jpg" rel="nofollow">This is the error we are getting</a>.

How can we Include .css file into unity plugin without running into error ?

Answer1:

Make sure to have your css file within the folder WebGLTemplates/AirConsole.

Recommend

  • Zooming an element and its contents— an alternative to CSS3's zoom property?
  • How to Configure Log4Net Custom Object Renderer for Generic Objects?
  • Unable to gem install nokogiri
  • What is this strange character in chrome's resource css viewer?
  • Is there any way to call saveCurrentTurnWithMatchData without sending a push notification?
  • Undefined navigator.push React-native 0.43.4
  • Creating a Multidimensional, Associative Array in VBScript
  • Angular2 - Template reference inside NgSwitch
  • How to autopopulate a field in SugarCRM form
  • How do I include a SWC in an AS2 Flash project?
  • How to add a focus style to an editable ComboBox in WPF
  • Multicolored edittext hint
  • Web.config system.webserver errors
  • Differences in dis-assembled C code of GCC and Borland?
  • How do I superscript characters in a UIButton?
  • Webgrid not refreshing after delete MVC
  • Jquery UI tool tip close icon
  • Checking free space on FTP server
  • Disable Enter in editText android
  • Change Inet root folder for iis 7
  • How to rebase a series of branches?
  • Get one-time binding to work for ng-if
  • Using $this when not in object context
  • Is there any way to access browser form field suggestions from JavaScript?
  • Is my CUDA kernel really runs on device or is being mistekenly executed by host in emulation?
  • How do I fake an specific browser client when using Java's Net library?
  • How reduce the height of an mschart by breaking up the y-axis
  • Bug in WPF DataGrid
  • Perl system calls when running as another user using sudo
  • Updated Ionic CLI but shows previous version (Windows)
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • Traverse Array and Display in markup
  • Load html files in TinyMce
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • coudnt use logback because of log4j
  • Qt: Run a script BEFORE make
  • costura.fody for a dll that references another dll
  • Observable and ngFor in Angular 2
  • UserPrincipal.Current returns apppool on IIS
  • java string with new operator and a literal