- Home /
Can I pass in the base path / asset path when embedding Unity content in a webpage?
I am embedding a Unity game in a web page and the path to the game is different than the path to the html file of the web page. The game loads assets at run-time and is looking for these assets in the directory of the web page. Is there a way to pass in or set the base path of the game so that it will look in the proper place for its assets?
Basically, I am looking for the Unity equivalent of the Flash technique of creating the param "base" and passing it into swfobject.embedSWF.
@s00tsprt, did you ever deter$$anonymous$$e if it works out-of-the-box?
Answer by Waz · May 20, 2010 at 06:20 PM
See the "src=foo.unity3d" and the src PARAM tag in the generated HTML. Change those.
Your answer
Follow this Question
Related Questions
Having trouble publishing my Unity Game on Facebook 1 Answer
Using web players in different browsers 1 Answer
Where can i find information on hosting my unity game and making it playable on my website? 1 Answer
embed web player without javascript 1 Answer
Unity webgl or threejs or babylonjs ? Which one is the best for me? 1 Answer