On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

for the snow ball spawning its just a script that moves an object position to a random point in a range, then spawns a snow ball then repeats for a set number of times, its just code in the update function.

(3 edits) (+1)

ohhh that makes sense. you could try using a while loop that runs in Start() or OnEnable() something like (psuedocode, probably won't run)

public int snowballs=100;

void Start()

{

while(snowballs>0)//while loops can crash the UnityEditor if they get stuck so beware

{

Instantiate(snowballPrefab,position,rotation);

snowballs= snowballs-1;

}

}


this should execute in only 1 frame.

otherwise you're only spawning 1 snowball per frame by doing it in the Update() loop.
Also, you could decrease the z-coordinate of each snowball by like .001 per loop, that way they won't z-fight.

(+1)

Thank you for the advice!