![]() |
ezEngine
Release 25.03
|
Public Member Functions | |
ezActor (ezStringView sActorName, const void *pCreatedBy) | |
ezStringView | GetName () const |
Returns the name of this actor. | |
const void * | GetCreatedBy () const |
Returns the 'created by' pointer of the actor. | |
void | AddPlugin (ezUniquePtr< ezActorPlugin > &&pPlugin) |
Transfers ownership of the ezActorPlugin to the ezActor. | |
ezActorPlugin * | GetPlugin (const ezRTTI *pType) const |
Queries the ezActor for an ezActorPlugin of the given type. Returns null if no such plugin was added to the actor. | |
template<typename Type > | |
Type * | GetPlugin () const |
Templated overload of GetPlugin() that automatically casts to the desired class type. | |
void | DestroyPlugin (ezActorPlugin *pPlugin) |
Deletes the given plugin from the actor. | |
void | GetAllPlugins (ezHybridArray< ezActorPlugin *, 8 > &out_allPlugins) |
Fills the list with all plugins that have been added to the actor. | |
bool | IsActorQueuedForDestruction () const |
Checks whether the actor is queued for destruction at the end of the frame. | |
![]() | |
virtual const ezRTTI * | GetDynamicRTTI () const |
bool | IsInstanceOf (const ezRTTI *pType) const |
Returns whether the type of this instance is of the given type or derived from it. | |
template<typename T > | |
EZ_ALWAYS_INLINE bool | IsInstanceOf () const |
Returns whether the type of this instance is of the given type or derived from it. | |
Protected Member Functions | |
void | UpdateAllPlugins () |
virtual void | Activate () |
Called shortly before the first call to Update() | |
virtual void | Update () |
Called once per frame to update the actor state. More... | |
Friends | |
class | ezActorManager |
Additional Inherited Members | |
![]() | |
static const ezRTTI * | GetStaticRTTI () |
|
protectedvirtual |
Called once per frame to update the actor state.
By default this calls UpdateAllPlugins() internally.