Come inserire Unity Web Player

March 13

Il Unity Web Player consente di visualizzare e riprodurre i giochi 3D creati con il software Unity. È possibile incorporare la Unity Web Player nel tuo sito web per consentire agli spettatori di giocare i giochi 3D all'interno del tuo sito. Utilizzare un editor di testo integrato in modo semplice, come Blocco note per aggiungere il codice Unity Web Player HTML al tuo sito.

istruzione

1 Aprire i file del sito web utilizzando un client FTP.

2 Aprire il file contenente il "<head>" contenuto del tuo sito utilizzando il blocco note. I file di indice o di intestazione spesso contengono il codice "<head>".

3 Incollare il codice seguente tra il "<head>" e "</ head>" tag HTML:

<Script type = "text / javascript" src = "& lt; / script" rel="nofollow">http://webplayer.unity3d.com/download_webplayer-3.x/3.0/uo/UnityObject.js&quot;>&lt;/script>

4 Salvare il file.

5 Aprire il file contenente il codice "<body>" del tuo sito utilizzando il blocco note.

6 Incollare il codice seguente tra il "<body>" e "</ body>" tag HTML:

unityObject.embedUnity ( "unityPlayer", "WebPlayer.unity3d", 600, 450);
<Div id = "unityPlayer">
<Div class = "mancante">
<A href = "http://unity3d.com/webplayer/&quot; title =" Unity Web Player. Installare ora! ">
<Img alt = "Unity Web Player. Installa ora!" src = "http://webplayer.unity3d.com/installation/getunity.png&quot; width =" 193 "height =" 63 "/>
</a>
</ Div>
</ Div>

7 Salvare il file.