Hello
Here is where i am at:
- Drag the Unit prefab into the scene
- Drag it back to prefab folder and choose Prefab Variant
3 Rename it to the new unit you are making - Next up UnitSpawner Drag the prefab template into the scene
- Drag it back into the prefab folder and choose Prefab Variant
- Rename it to the new unit you are making
- Next Up projectile for it
- Drag the projectile prefab into the scene
- Drag it back into the prefab folder and choose Prefab Variant
- Next up the UnitspawnerPreview Drag into the scene
- Drag it back into prefab folder and choose Prefab Variant
- Rename it for the unit you are making
- Next Up check the Scene_Menu’s NetworkManager
- Registered SpawnablePrefabs is the spot to tweak based on any prefabs that you need to add
- In the Map_0x check any buttons on the BuildinsDisplay canvas
- Check on the Player Prefab for the Buildings Elements as needed
Ok thats the tedious stuff now for customization…
Time to tweak all 4 prefabs for that one unit.
In our example choose the SmallUnit Prefab and find a model to add as a child
Tweak all components within the small unit prefab.
Note: Be sure to add an empty game object and name it AimAiPoint in the spawner
BE SURE TO LOOK AT ALL COMPONENTS within the prefabs themselves
Just go down the list one by one for each each specifics you want
The above is very close to all steps for creating a new unit for use.
Check Ids as you go NO DUPS
example… smallunitspawner id = 1
medUnitSpawner id = 2
largeUnitSpawner id 3
In the building script is where you can see the id’s
keep track yourself – develop a plan for expansion
Next up buildings
How do i get the new unit to work?
I added button to building canvas but it does not work.
Thanks