Welcome to GEMENTAR TOUR PUO V2 Development Documentation. Enjoy your stay!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:how_to_create_new_buildings [2022/07/25 12:33] – adminwiki:how_to_create_new_buildings [2022/07/27 16:48] (current) – admin
Line 1: Line 1:
 + --- //[[admin@puov2.gementar.com|Hilmi]] 2022/07/25 13:48//
 ====== 1 - Pick Building GameObject ====== ====== 1 - Pick Building GameObject ======
 {{:wiki:image_2022-07-25_201051886.png?nolink&400|}} {{:wiki:image_2022-07-25_201051886.png?nolink&400|}}
Line 4: Line 5:
 You can use any game object, import it from OBJ, FBX or create it your own! I suggest your create it using UModeler!. You can use any game object, import it from OBJ, FBX or create it your own! I suggest your create it using UModeler!.
  
-====== 2 - Create new ScriptableObject ====== +====== 2 - Pick ScriptableObject ====== 
-INFO : This scriptable object is used for determine the building variable.+:!: This scriptable object is used for determine the information
  
 +Go to Folder <code>''(Assets/3 - Atan/Scriptable Object/Bangunan)''</code>
 +Pick scriptable object 
 +
 +:!: Create your own scriptableObject if it's not exist
 +<code>
 +''Create > Data Bangunan''.
 +Drag new created ScriptableObject into SearchSystemController (Canvas > Building_List) List
 +</code>
 +
 +Now you can fill up Scriptable Object Information!
 +:!: Make sure to fill up x and y axis base on your building center pivot point.
 +
 +
 +<code csharp | Side Info!Bangunan Class Script> public class Bangunan : ScriptableObject
 +{
 +    [BoxGroup("Informasi Bangunan")]
 +    public string namaBangunan;
 +    [BoxGroup("Informasi Bangunan")]
 +    [TextArea]
 +    public string namaPenuhBangunan;
 +    [BoxGroup("Informasi Bangunan")]
 +    [TextArea(15, 50)]
 +    public string maklumatPertama;
 +    [BoxGroup("Informasi Bangunan")]
 +    [TextArea(15, 50)]
 +    public string maklumatKedua;
 +
 +    public float xLocation;
 +    public float zLocation;
 +}
 + </code>
 +====== 3 - Apply building interact script ======
 +Drag BuildingInteract Scrip into your BUILDING gameObject
 +  * Setup Input Field ( For Search )
 +  * Setup Holo Material
 +  * Select Senarai Bangunan Enum
 +
 +{{ :wiki:image_2022-07-25_210543013.png?nolink&400 |}}
 +
 +<code csharp  | INFO If you're creating completely new building add your enum list in BuildingInteract script>
 +    public enum SenaraiBangunan
 +    {
 +        _1_pusat_islam = 0,
 +        _2_anjung_premier = 1,
 +        _3_cisec = 2,
 +        _4_dewan_jka = 3,
 +        _5_hep = 4,
 +        _6_JKM_D_JKA = 5,
 +        _7_PEJABAT_PENTADBIRAN = 6,
 +        _8_JMSK = 7,
 +        _9_DEWAN_WARISAN = 8,
 +        _10_STUDENT_CENTRE = 9,
 +        _11_GALERI_PUO = 10,
 +        _12_FUTSAL_CAMPUS_A = 11,
 +        _13_BENGKEL_MEKANIKAL = 12,
 +        _14_BENGKEL_AWAM = 13,
 +        _15_PERPUSTAKAAN = 14,
 +        _16_DEWAN_JUBLI = 15,
 +        _17_JMSK_D_JKM = 16,
 +        _18_BENGKKEL_AKM = 17,
 +        _19_JKP = 18,
 +        _20_CAFE_JKE = 19,
 +        _21_JTMK = 20,
 +        _22_JKE = 21
 +    }
 +</code>
 +
 +====== 3 - Set Building GameObject Layer = Building ======
 +{{ :wiki:image_2022-07-25_213758464.png?nolink&400 |}}
 +
 +====== 4 - Good To Go! ======
 +{{ :wiki:image_2022-07-25_214151712.png?nolink&400 |}}
  
-{{:wiki:image_2022-07-25_201051886.png?nolink&400|}} 
  
-Go to Folder (Assets/3 - Atan/Scriptable Object/Bangunan) 

QR Code
QR Code wiki:how_to_create_new_buildings (generated for current page)
Hello World!
DokuWiki with monobook... rules!