Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I am not able to spawn bullets even after setting everything as mentioned in documentation and at this webpage ? Also,why max active bullets is always zero, even if max bullets is not zero ? Please help me.

Hey! Can I see the TestingGun.cs script please? And the Spawn Settings on the bullet manager? 

I will likely be quicker to respond on Discord or by email, feel free to send me a DM: theChief#0001 or email me at support@wayfarer-games.com

a few things to check, if you reply while I'm not at my computer:

  • first things first, make sure the demo scene runs properly. If it does, it's likely an issue with your script or spawn settings
  • check the console to make sure there are no errors. The most likely one is that the bullet material isn't using the correct shader, or it doesn't have GPU instancing enabled.
  • make sure the fire rate is some normal value. The value is the number of seconds between spawns, it's generally best to have this somewhere between 0 and 1
  • make sure the number of sides and number per side are 1 or higher. If either are 0, it won't spawn any bullets!
  • make sure you're calling bulletManager.Spawn somewhere, with a position and direction. I usually do this in Update
  • if all of those things are true, zip up your Assets folder and send it to me at support@wayfarer-games.com (https://wetransfer.com is a great way to do that if your project is bigger than a few megabytes) and I'll have a look and see what I can figure out!

Okay, I will check that.

Hey! There was an issue with the asset, thanks for picking that up. I've sent you an email, you should just be able to redownload it from the same link on this post!