brazerzkidaiego.blogg.se

Keyshape prefab unity
Keyshape prefab unity




keyshape prefab unity

Create materials for our prefabsĬreate 4 of them and name them as per below:

keyshape prefab unity

Start off by creating a material by right clicking in your assets folder. Namely a terrain object, a friend object and a enemy object. We are going to create 3 materials for our 3 different objects. plane transform settings unity spawn prefab Create materials for our objects Like below: Level and terrain setup Ground plane for our prefab spawnerĬopy these settings for your ground panel transform. Next create a plane game object and call it terrain and parent it to the level game object. Create a empty game object call it level.

keyshape prefab unity

Create a flat terrain to spawn onįor this we will need to create two things. Parent main camera and light to the empty game object. For now create the structure as below in your inspector. We are in a later tutorial going to refer back to this project for a saving tutorial. Start off with a empty game object and rename it to game. Call it whatever you like the naming of the project isn’t important. In order to get started create a new unity 3d project. At the end of this tutorial you should have something that looks like this. For the purpose of this tutorial we going to use a very practical example where we will spawn terrain assets and both friendly npcs and enemy npcs.

#Keyshape prefab unity how to#

In this tutorial we going to cover how to use unity to spawn a prefab at a position, first we will be placing them at a fixed point and spawning them randomly later in the tutorial.






Keyshape prefab unity