Publish your project

Summary

  • Set the platform for a build of a Unity project 
  • Create a basic build of a Unity project. 
  • Share your project with the Unity Learn community.

ตรวจสอบ WebGL Build Support

 - เปิด Unity Hub เช็คว่ามี WebGL ขึ้นหรือไม่ถ้าไม่มีไปเพิ่มโมดูล

 - ไปที่ window > package Manager และโหลด WebGL Publisher

Set up your platform build

 - ไปที่ File > Build Settings หรือกด Ctrl + Shift + B และไปที่ WebGL

 - ไปที่ Player Settings และเลือก WebGL settings

 - เปลี่ยนชื่อ Comany name และ Product Name ส่วน Icon ใส่หรือไม่ใส่ก็ได้

 - กด Switch Platform เพื่อเป็นการสร้างโปรเจ็ค

 - กด Build and Run และเลือกโฟลเดอร์ที่จะเก็บตัว WebGL นี้

 - Unity จะสร้างไฟล์ index.html และไฟล์อื่นๆที่จำเป็นสำหรับเกม WebGL

 - ถ้าอยากดูเกมของเราที่เป็นแบบเว็บให้กดไปที่ Build And Run อีกรอบ


Publish project

 - ไปที่ Publish > WebGL Project และกด Get Start

 - กด Publish เพื่อ upload ไปที่ Unity Website

 - Unity จะพาเรามา Unity Play และตั้งชื่อเกมและคำอธิบายของเกมเราที่จะเอาลง Unity Play


 - เท่านี้เราเอาเกมของเราลงไปใน Unity Play ได้แล้ว (สามารถเข้าไปดูของเจ้าของ Blog ได้ตามลิ้งนี้ Pachinko First game - Unity Play)









game blog w16-1

  Summary   Centent ใน week ที่ 16-1 มีดังนี้   - Human player turn to ghost when died    - Ghost bot (path finding with project A*)   Human...