Karma Engine
Loading...
Searching...
No Matches
Karma::UChildActorComponent Class Reference

#include <ChildActorComponent.h>

Inheritance diagram for Karma::UChildActorComponent:
Collaboration diagram for Karma::UChildActorComponent:

Public Member Functions

virtual void BeginDestroy () override
 Called before destroying the object. This is called immediately upon deciding to destroy the object, to allow the object to begin an asynchronous cleanup process.
 
- Public Member Functions inherited from Karma::USceneComponent
const glm::vec3 & GetRelativeRotation () const
 
const glm::vec3 & GetRelativeLocation () const
 
const glm::vec3 & GetRelativeScale3D () const
 
void SetWorldLocation (glm::vec3 newLocation)
 
void SetWorldTransform (const FTransform &NewTransform)
 
std::shared_ptr< USceneComponentGetAttachParent () const
 
virtual FTransform GetSocketTransform (const std::string &InSocketName, ERelativeTransformSpace TransformSpace=RTS_World) const
 
const FTransformGetComponentTransform () const
 
bool IsUsingAbsoluteLocation () const
 
bool IsUsingAbsoluteRotation () const
 
bool IsUsingAbsoluteScale () const
 
void SetRelativeTransform (const FTransform &NewTransform)
 
FORCEINLINE const std::string & GetAttachSocketName () const
 
- Public Member Functions inherited from Karma::UActorComponent
virtual void TickComponent (float deltaTime)
 
virtual void BeginPlay ()
 
virtual void EndPlay (const EEndPlayReason::Type EndPlayReason)
 
AActorGetOwner () const
 
bool HasBeenCreated () const
 
virtual void OnComponentCreated ()
 
bool IsRegistered () const
 
bool IsActive () const
 
virtual void Activate (bool bReset=false)
 
void SetActiveFlag (const bool bNewIsActive)
 
bool HasBeenInitialized () const
 
virtual void InitializeComponent ()
 
bool HasBegunPlay () const
 
virtual void UninitializeComponent ()
 
virtual void OnComponentDestroyed (bool bDestroyingHierarchy)
 
- Public Member Functions inherited from Karma::UObject
 UObject ()
 
virtual void FinishDestroy ()
 
virtual const std::string & GetDesc ()
 Return a one line description of an object for viewing in the thumbnail view of the generic browser.
 
virtual class UWorldGetWorld () const
 Returns what UWorld this object is contained within.
 
bool IsValidChecked (const UObject *Test)
 
FORCEINLINE bool Modify (bool bAlwaysMarkDirty=true)
 
bool IsSelected () const
 Test the selection state of a UObject.
 
- Public Member Functions inherited from Karma::UObjectBase
 UObjectBase (UClass *inClass, EObjectFlags inFlags, EInternalObjectFlags inInternalFlags, UObject *inOuter, const std::string &inName)
 
UPackageGetPackage () const
 
UPackageGetExternalPackage () const
 
bool IsUnreachable () const
 
FORCEINLINE void SetInternalIndex (uint32_t StoreIndex)
 
FORCEINLINE uint32_t GetInterIndex () const
 
void MarkAsGarbage ()
 
void ClearGarbage ()
 
FORCEINLINE const std::string & GetName () const
 
FORCEINLINE void SetObjectName (const std::string &aName)
 
FORCEINLINE UObjectGetOuter () const
 
UObjectGetTypedOuter (UClass *Target) const
 
template<typename T >
T * GetTypedOuter () const
 
bool IsValidLowLevel () const
 
template<typename OtherClassType >
FORCEINLINE bool IsA (OtherClassType SomeBase) const
 
FORCEINLINE UClassGetClass () const
 
FORCEINLINE EObjectFlags GetFlags () const
 
FORCEINLINE void SetFlags (EObjectFlags NewFlags)
 
FORCEINLINE void ClearFlags (EObjectFlags NewFlags)
 
FORCEINLINE bool HasAnyFlags (EObjectFlags FlagsToCheck) const
 
FORCEINLINE bool HasAnyInternalFlags (EInternalObjectFlags FlagsToCheck) const
 
FORCEINLINE void SetInternalFlags (EInternalObjectFlags FlagsToSet) const
 
FORCEINLINE void AddToRoot ()
 

Additional Inherited Members

- Static Public Member Functions inherited from Karma::UObject
static const char * StaticConfigName ()
 
- Static Public Member Functions inherited from Karma::UObjectBase
static FORCEINLINE EInternalObjectFlags FixGarbageOrPendingKillInternalObjectFlags (const EInternalObjectFlags InFlags)
 
- Public Attributes inherited from Karma::USceneComponent
glm::vec3 m_ComponentVelocity
 
std::string m_AttachSocketName
 
std::vector< std::shared_ptr< USceneComponent > > m_AttachChildren
 
- Public Attributes inherited from Karma::UActorComponent
EComponentCreationMethod m_CreationMethod
 
uint8_t m_bAutoActivate: 1
 
uint8_t m_bWantsInitializeComponent: 1
 
- Protected Member Functions inherited from Karma::UActorComponent
virtual bool ShouldActivate () const
 
- Protected Member Functions inherited from Karma::UObjectBase
FORCEINLINE void SetFlagsTo (EObjectFlags NewFlags)
 
- Protected Attributes inherited from Karma::UActorComponent
uint8_t m_bRegistered: 1
 

Detailed Description

A component that spawns an Actor when registered, and destroys it when unregistered.

Member Function Documentation

◆ BeginDestroy()

void Karma::UChildActorComponent::BeginDestroy ( )
overridevirtual

Called before destroying the object. This is called immediately upon deciding to destroy the object, to allow the object to begin an asynchronous cleanup process.

Todo
To be written with Shiva logic for UObject destruction.
Since
Karma 1.0.0

Reimplemented from Karma::USceneComponent.


The documentation for this class was generated from the following files: