Jump to content

Components


StOneDOes
 Share

Recommended Posts

I'm trying to understand when a component is required. I have many objects in my world that I create dynamically (not in the editor). These objects have logic that needs to be checked each frame.

What would be the difference between me instantiating this object as a derived class of BaseComponent (add component to entity), that has its Update() function called by the engine each frame, as oppose to me not deriving  BaseComponent, and calling Update() for this object on each game frame myself. Is there any difference here?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...