|
Post by 3dstudio on Dec 23, 2017 13:15:43 GMT
HI a Quick question, Any (built in) function to destroy killed enemy body, To save memory? I am askind about > Invercotor BUIlT IN < rather than a third-party solution.
|
|
|
Post by uberwiggett on Dec 23, 2017 15:21:40 GMT
There's destroy component options as a tick box on death, however a simple script that destroys the whole object on death could also work, just have it activate when the death event occurs. Actually, I think there is a script that does that, v destroy object...
|
|
|
Post by 3dstudio on Dec 23, 2017 15:27:48 GMT
Thanks for Feedback, I will try.
|
|
|
Post by tshellberg on Jan 3, 2018 6:38:41 GMT
If you reuse your enemy objects, consider using Object Pooling instead of destroying the object every time it dies.
|
|