Skip to main content

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

Thanks for this great assets, it’s awesome.

I have a bug to submit (we are 2 developpers with similar problems)

It’s hard to reproduce because it happens not everytime and not in the same way, but when I have multiple BulletManager, and when I call Spawn() every Update frame, one of emitter is not spawning bullets. (not a problem of views, apparently the bullet doesn’t spawn at all) They are exactly the same object, and Spawn function called the same way but I have only 3 of my 4 bulletManager working.

Have you got some idea ? (apparently, I have the same problem, when I call the spawn method not from an update unty callback.

Sorry, it’s difficult to send you a small project to reproduce that, but you can DM me to get more details.

Appreciate your answer, because I’m kind of stuck in my gamedev with this bug ;) Thanks in advance

(+1)

hey! I can't seem to reproduce that. Do you get any warnings or errors in the console? 

If you want me to take a look at the project I'm happy to, just zip up the Assets folder and send it to me either on Discord (theChief#0001) or if it's too big for that you can send it via https://wetransfer.com to support@wayfarer-games.com


Cheers!

Thanks for your answer. I think I have found a way to create the problem in a similar way my code do.

  1. Open your Demo_Scene
  2. Press Play, there is 3 bullet manager that are spawning
  3. Disable the component TestWeapon.cs on one of them
  4. Enable it again, the concerned bullet manager does not start spawning again.

Is it a normal behaviour. Apparently in TestWeapon, you just call the Spawn func in Update ( like I do with my code). So It should start spawning again after reactivation, no ?

Thanks in advance for your reply. Maybe I’m missing something in my comprehension ;)

This is interesting - that doesn't happen for me! What version of Unity are you using

Unity 2020.3.18f1

(1 edit) (+1)

I've just sent an update, can you try redownloading and reimporting it for me please?

Yeah ! thanks !! It fixes the issue descrived ! You’re the boss :)

I speak a bit too quickly :) I have another problem whe numside is 2 ( the manager only spawn one in this case) I see in my git, that you added a special case whith if numside == 2 , so maybe it breaks something else ?

Show me the spawn settings?

Starting from your demo scene, just switch NumSides to 2 The Manager only send 1 side bullet

Ah, it looks like that is because numPerSide is 1 - it's going to do exactly numPerSide bullets!