equipment is Actor or component?

hello, everyone.I have a question:Equipment is Actor or Component?Like weapons,wapons is Actor or Component?and armor?These are visible in the appearance of the player, those that are not visible equipment, such as rings, necklaces, is the actor or component?
And do I create an actor or component for each equipment?

Depends on complexity. You may need fully fledged actors at times. For simpler things you can use components. Note that you can extend a Static / Skeletal Mesh Component - not only does it have a full graph with variables and whatnot but can also already show a mesh.

(post deleted by author)

Component can be added to an actor, but if the weapon is an actor, how does it relate to the player?
There are a lot of characters in the game, and if the weapon is used as an actor, will it cause a lot of actors in the scene?

you can attach an actor to an actor

regarding performance, equipment actors are usually pretty cheap, its the mesh/materials which could be costly but then you need that regardless so basically it shouldnt matter.

Thank you for your reply.
Is actor attach an actor same as component attach actor?In my opinion, the composite belongs to the actor, and executing the program in the component is equivalent to executing the program in the actor.I don’t know if this perception is right or wrong.

actors and components have their own logic if that’s what you mean, although you can access the Parent through various methods

Actors and components are instances, each with an independent life of their own but they can, ofc, communicate. Inheritance, on the other hand, will allow for parent-child dependencies where children can execute script parents define.


I say go with components if you want to build something modular. If you opt for actor, you’d need to rely on attchment, or child actor components - these are neither convenient or versatile enough.

Thank you for your reply.Then I’ll try it with an actor first.