So i have some Prefabs which will be my Level Parts. How to Spawn them in rotated ?
I am also spawning the same Prefab multiple times. So i want it one time in one direction one other time in another:
Here is a Example:
Thanks for you help.
The instantiate method allows you to specify a position as well as a rotation. Therefore, if you new the rotation and position you wanted, you could write:
Instantiate(prefab, position, rotation);
This allows you to make multiple objects each with their own rotation. More info can be found here: Unity - Scripting API: Object.Instantiate
change rotation to change its rotation.
you can just do a normal rotation plus or minus 90/180 degrees to do a simple rotation