It could be any HTML element with being the most common. The first one specifies the id of the HTML element that will be replaced by Unity content. This is performed by instantiating UnityObject2 and calling initPlugin on the new instance. You can now instantiate the UnityObject2 class to assist you in various Unity-related tasks, the most important one being embedding Unity content. The UnityObject2 script has to be loaded before it can be used. The rest of the document explains the inner workings of this file. In most cases you don’t have to modify the HTML file at all. The HTML file generated by Unity when building a web player contains all the commonly required functionality. It also enables easy Web Player installation. Its primary task is to make Unity content embedding very simple by shielding the user from various browser- and platform-specific issues. HTML code usually does not communicate with this plugin directly but via the script called UnityObject2. Unity content is loaded in the browser by the Unity Web Player plugin.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |