Hosting a Unity3D game on Azure Websites

Generalkidd

I'm having trouble running my Unity3D web player build on Windows Azure websites. I've uploaded the two files generated by Unity, an html file and a .unity3d. However, when I try to run the website, even if Unity Web Player is already installed.

I uploaded my files via FTPS to the \site\wwwroot directory which seems to be correct. But if I run the website, the unity web player says the object can't be found.

I read somewhere that I have to change the MIME settings for the website with something like this:

<staticContent> 
<mimeMap fileExtension=".unity3d" mimeType="application/vnd.unity" /> 
</staticContent>

But I don't know how to change the MIME settings or if that's even possible from the dashboard in Windows Azure.

MandrX

Sorry for the late reply, I just came across it today :).

What you should do to change the MIME settings for your website is to add a file named web.config in the root folder of your Azure website ( / ).

The file web.config should contain the following in order to allow Unity3d to work (as you previously stated)

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <staticContent>
      <mimeMap fileExtension=".unity3d" mimeType="application/vnd.unity" />
    </staticContent>
  </system.webServer>
</configuration>

Once the file has been uploaded, restart your website from the portal and it should work perfectly.

Have a nice day

Mike

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Hosting multiple static websites on Azure Blob Storage

From Dev

How to host multiple websites on a Standard Azure Websites Instance, Is this a Web Hosting Plan?

From Dev

Azure WebSites - Can't Scale Sites Individually (New Web Hosting Plan Groups)

From Dev

How do I setup a background process on a express.js app hosting on Azure websites?

From Dev

Hosting multiple websites on a single server

From Dev

Problems With Hosting Websites With Google Drive

From Dev

2D game development with Unity3D

From Dev

How to design a game in Unity3D which is viable for patching?

From Dev

How to install Unity3d game engine on Ubuntu

From Dev

Unity3D Quit Android Game with user prompt

From Dev

How to horizontally center a unity3D game in a div?

From Dev

Using a printer to print Unity3D Game statistics

From Dev

Unity3D checking if a point is inside a game object

From Dev

Using/handling bitcoin in Unity3d game

From Dev

Unity3d Design game for Multiple screen size

From Dev

In Unity3D game engine, how to make a delay?

From Dev

Unity3D execute code before the game closes

From Dev

How to install Unity3d game engine on Ubuntu

From Dev

How to setup Parental gate for game developed in UNITY3d?

From Dev

how to limit the rotation of a game object in unity3d

From Dev

How to horizontally center a unity3D game in a div?

From Dev

Using a printer to print Unity3D Game statistics

From Dev

Flow free like game Unity3d (line drawing)

From Dev

Unity3D async game object instantiation

From Dev

C# Event execution order (Unity3D game)

From Dev

While loop freezes game in Unity3D

From Dev

most common version of rails used on hosting websites

From Dev

Tomcat or JBoss hosting 1 webapp with multiple websites

From Dev

Hosting several websites on wamp with laravel breaks the routes

Related Related

  1. 1

    Hosting multiple static websites on Azure Blob Storage

  2. 2

    How to host multiple websites on a Standard Azure Websites Instance, Is this a Web Hosting Plan?

  3. 3

    Azure WebSites - Can't Scale Sites Individually (New Web Hosting Plan Groups)

  4. 4

    How do I setup a background process on a express.js app hosting on Azure websites?

  5. 5

    Hosting multiple websites on a single server

  6. 6

    Problems With Hosting Websites With Google Drive

  7. 7

    2D game development with Unity3D

  8. 8

    How to design a game in Unity3D which is viable for patching?

  9. 9

    How to install Unity3d game engine on Ubuntu

  10. 10

    Unity3D Quit Android Game with user prompt

  11. 11

    How to horizontally center a unity3D game in a div?

  12. 12

    Using a printer to print Unity3D Game statistics

  13. 13

    Unity3D checking if a point is inside a game object

  14. 14

    Using/handling bitcoin in Unity3d game

  15. 15

    Unity3d Design game for Multiple screen size

  16. 16

    In Unity3D game engine, how to make a delay?

  17. 17

    Unity3D execute code before the game closes

  18. 18

    How to install Unity3d game engine on Ubuntu

  19. 19

    How to setup Parental gate for game developed in UNITY3d?

  20. 20

    how to limit the rotation of a game object in unity3d

  21. 21

    How to horizontally center a unity3D game in a div?

  22. 22

    Using a printer to print Unity3D Game statistics

  23. 23

    Flow free like game Unity3d (line drawing)

  24. 24

    Unity3D async game object instantiation

  25. 25

    C# Event execution order (Unity3D game)

  26. 26

    While loop freezes game in Unity3D

  27. 27

    most common version of rails used on hosting websites

  28. 28

    Tomcat or JBoss hosting 1 webapp with multiple websites

  29. 29

    Hosting several websites on wamp with laravel breaks the routes

HotTag

Archive