In which I test the uploading of a Unity Scene. How hard can it be?
‹‘−’›
Getting this working took 4 hours. Not the scene. Just the posting to the web part. I’m not getting that time back.
But for all who come after, know this. thequietvoid is hosted through godaddy.com and at current they do not support the .unity3d file type as a known file. So after following the instructions from the Unity site. Installing the WP_UnityObject plugin. Making the changes to the functions.php that would allow .unity3d file uploads. Still nothing worked. The advice I found was to change the web.config file so that .unity3d is an allowed mim type on the server.
But web.config in the root has been hijacked by wordpress, so everytime I changed the xml the site stopped working. Sigh.
So how does it work at the moment you may ask ? Well, and don’t try this at home kids. I renamed the .unity3d file to .jpg. Made the change to src tag in WP_UnityObject and viola, the HACK IS ALIVE.
But it’s not right and I’m sure it’s going to break things if the scene try’s to access the browser. So now I have to go through the process of getting this fixed.
Bugger.
UPDATE: later that night
Ok, now it works. I had a nap. Thought on it. Fixed it. The trick is I just had to add a unique web.config file into the wordpress upload folder allowing the webserver to serve out the file. There now it works correctly. Before I forget this is the secret ingredient. Adding this to a file called web.config in the wordpress upload directory fixes the last of the problems.
1 2 3 4 5 6 7 8 | <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <staticContent> <mimeMap fileExtension=".unity3d" mimeType="application/vnd.unity" /> </staticContent> </system.webServer> </configuration> |








RSS feed for comments on this post. / TrackBack URI