This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

Sign in to follow this  
Followers 0
stepheno2828

[Source] Creating Random Spawning

3 posts in this topic

Here is an example of how to create a spawn of an object in 3 potential positions. In my scene I have set up 3 differing locations using empty objects which I then apply to the transform variables in the script. The only other thing you’ll need is a prefab!

Please login or register to see this code.

Share this post


Link to post
Share on other sites

Thanks, I'm just trying to learn and understand the full concept of game development. Only bits and pieces of the codes i release are not entirely made by me but edited in away to fit the need of my goal.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0