Hey guys, I was just wondering if I can programmatically destroy entity components like the model or animation components (yes, components, not the component’s assets) by just assigning null to them or if there is any specific method of doing it, I already looked through the documentation and found no clear answer.
Edit: literally found the answer on the entity API, sorry for the inconvenience, can anyone delete this topic?
I’m a newb to PlayCanvas and Javascript, but have been online since the days of dial up BBS. I see forums like this and questions like your valuable. This thread makes at least three valuable contributions.
How to destroy a component
Where to find many answers
Reminds people that they can often figure things out themselves.