Which solution has a better performance ?
Get Class of an Actor and check if it is a certain class OR check if the Actor implements an interface ?
1 Like
i couldnt tell you exactly except to say they’re both soo fast it doesnt matter, use whats better for you which in this case would usually be the interface
4 Likes
Thank you for your opinion. However, I think the “Get Class” node is more practical since it doesn’t necessarily require an interface.
in this case yes but if you add other ships that arent children of playership its a pain to go back and fix
1 Like
The get class is worse, because it has to load the class to check.
Interface is just a flag on the actor, more efficient.
3 Likes
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.