Quantcast
Channel: How do I Instantiate Objects In Unity? - Stack Overflow
Viewing all articles
Browse latest Browse all 2

How do I Instantiate Objects In Unity?

$
0
0

I am making a top down game in Unity, how do I instantiate objects based on the players current position from the top of the camera view in Unity?

So far I have tried:

Instantiate(prefab, player.transform.position * 2 * Space.World)

but this didn't work. This just spawned objects from the center of the camera.


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images