suriyun-production / mmorpg-kit-docs

This is document for MMORPG KIT project (https://www.assetstore.unity3d.com/#!/content/110188?aid=1100lGeN)
https://suriyun-production.github.io/mmorpg-kit-docs
49 stars 11 forks source link

Monster spawn area #2458

Closed CLAXES closed 2 months ago

CLAXES commented 2 months ago

Hello, I want the monster not to be deleted from the map when it dies, but only deactivated and then activated. This system works when I put the monster directly, but when I use the monster area, it deletes the monster and adds it again, which causes stuttering in the game. I want the monster to be loaded only once when entering the map, then I want it to be deactivated and activated, is there a simple method I can do this?

moepi2k commented 2 months ago

Mh isnt the pooling system do this?

CLAXES commented 2 months ago

Mh isnt the pooling system do this?

the monsterspawnarea system does not create a pool, it deletes the dead monster and then adds it again, which causes the game to freeze momentarily.

insthync commented 2 months ago

Try set pooling size in LiteNetLibIdentity component.

insthync commented 2 months ago

Did you try it?

CLAXES commented 2 months ago

I haven't tried it yet, I can look tonight.

CLAXES commented 2 months ago

Did you try it?

Yes when I did what you said it worked as I wanted thank you the subject can be closed.