Navigation
API > API/Runtime > API/Runtime/MovieScene
A component that represents a UObject* either as a strong or weak reference
| Name | FObjectComponent |
| Type | struct |
| Header File | /Engine/Source/Runtime/MovieScene/Public/EntitySystem/BuiltInComponentTypes.h |
| Include Path | #include "EntitySystem/BuiltInComponentTypes.h" |
Syntax
struct FObjectComponent
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| EntitySystem/BuiltInComponentTypes.h | |||
FObjectComponent
(
UObject* InObject, |
EntitySystem/BuiltInComponentTypes.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ObjectKey | FObjectKey | Default constructed for strong pointers. Assigned on construction for weak ptrs. | EntitySystem/BuiltInComponentTypes.h | |
| ObjectPtr | TObjectPtr< UObject > | Raw pointer to the object. | EntitySystem/BuiltInComponentTypes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UObject * GetObject() |
EntitySystem/BuiltInComponentTypes.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FObjectComponent Null() |
Construct a new null component | EntitySystem/BuiltInComponentTypes.h | |
static FObjectComponent Strong
(
UObject* InObject |
Construct a new strongly-referenced component from an object ptr | EntitySystem/BuiltInComponentTypes.h | |
static FObjectComponent Weak
(
UObject* InObject |
Construct a new weakly-referenced component from an object ptr | EntitySystem/BuiltInComponentTypes.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
operator bool() |
Check whether this object component is valid | EntitySystem/BuiltInComponentTypes.h | |
bool operator!=
(
UObject* InObject |
Compare this component with another object ptr | EntitySystem/BuiltInComponentTypes.h | |
bool operator==
(
UObject* InObject |
Compare this component with another object ptr | EntitySystem/BuiltInComponentTypes.h | |
UObject * operator->() |
EntitySystem/BuiltInComponentTypes.h |