The base class of all the game code relevant objects.
More...
#include <Object.h>
|
FORCEINLINE void | SetFlagsTo (EObjectFlags NewFlags) |
|
The base class of all the game code relevant objects.
The base class of all UE objects. The type of an object is defined by its UClass. This provides support functions for creating and using objects, and virtual functions that should be overridden in child classes.
- See also
- https://docs.unrealengine.com/ProgrammingAndScripting/ProgrammingWithCPP/UnrealArchitecture/Objects
◆ UObject()
Karma::UObject::UObject |
( |
| ) |
|
◆ BeginDestroy()
void Karma::UObject::BeginDestroy |
( |
| ) |
|
|
virtual |
◆ FinishDestroy()
void Karma::UObject::FinishDestroy |
( |
| ) |
|
|
virtual |
Called to finish destroying the object. After UObject::FinishDestroy is called, the object's memory should no longer be accessed.
- Warning
- Because properties are destroyed here, Super::FinishDestroy() should always be called at the end of your child class's FinishDestroy() method, rather than at the beginning.
- Todo
- To be written with Shiva logic for UObject destruction.
- Since
- Karma 1.0.0
◆ GetDesc()
virtual const std::string & Karma::UObject::GetDesc |
( |
| ) |
|
|
inlinevirtual |
Return a one line description of an object for viewing in the thumbnail view of the generic browser.
- Todo
- Place holder for now. Plan to rewrite once Editor reaches that stage
- Since
- Karma 1.0.0
Reimplemented in Karma::UClass.
◆ GetWorld()
class UWorld * Karma::UObject::GetWorld |
( |
| ) |
const |
|
virtual |
Returns what UWorld this object is contained within.
By default this will follow its Outer chain, but it should be overridden if that will not work.
- Since
- Karma 1.0.0
Reimplemented in Karma::AActor, and Karma::ULevel.
◆ IsSelected()
bool Karma::UObject::IsSelected |
( |
| ) |
const |
Test the selection state of a UObject.
- Returns
- true if the object is selected, false otherwise.
- Todo
- UE this doesn't belong here, but it doesn't belong anywhere else any better. To be written after Editor is functional with UObjects
- Since
- Karma 1.0.0
◆ IsValidChecked()
bool Karma::UObject::IsValidChecked |
( |
const UObject * | Test | ) |
|
Test validity of object similar to IsValid(Test) however the null pointer test is skipped
- Parameters
-
- Returns
- Return true if the object is usable: not pending kill or garbage
- Since
- Karma 1.0.0
◆ Modify()
FORCEINLINE bool Karma::UObject::Modify |
( |
bool | bAlwaysMarkDirty = true | ) |
|
|
inline |
Note that the object will be modified. If we are currently recording into the transaction buffer (undo/redo), save a copy of this object into the buffer and marks the package as needing to be saved.
- Parameters
-
bAlwaysMarkDirty | if true, marks the package dirty even if we aren't currently recording an active undo/redo transaction |
- Returns
- true if the object was saved to the transaction buffer
- Since
- Karma 1.0.0
◆ StaticConfigName()
static const char * Karma::UObject::StaticConfigName |
( |
| ) |
|
|
inlinestatic |
A legacy function from UE
The documentation for this class was generated from the following files:
- Karma/src/Karma/Core/Object.h
- Karma/src/Karma/Core/Object.cpp