Here is the list I extracted during the video Adding More Units…
- 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
I hope to get a better list of all the little things.
I must have missed something and Hope to find out what it is.
I added the button to the building canvas and can see the drag rect but not preview of new med unit.
When i mouse down over the original buttons they still work fine.
My New button does not display the preview???
Please help thanks
I am going to watch that video again (embarrassed to say 4th time) and try to make a more complete list of things to do.
Its been a GREAT class I love the idea of using prefabs for almost everything.
I hope getting that list of things to do to include what to do on the building canvas buttons???
Thanks for your help and great class