Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObject
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectRef.h |
| Include | #include "UObject/ObjectRef.h" |
Syntax
struct FObjectRef
Remarks
FObjectRef represents a heavyweight reference that contains the specific pieces of information needed to reference an object (or null) that may or may not be loaded yet. The expectation is that given the imports of a package we have loaded, we should be able to create an FObjectRef to objects in a package we haven't yet loaded. For this reason, FObjectRef has to be derivable from the serialized (not transient) contents of an FObjectImport.
Variables
Constructors
| Type | Name | Description | |
|---|---|---|---|
FObjectRef () |
|||
FObjectRef
(
const UObject* Object |
|||
FObjectRef
(
FName PackageName, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AppendClassPathName
(
FStringBuilderBase& OutClassPathNameBuilder, |
Appends the path to the class for this object to the builder, does not reset builder. | |
| void | AppendPathName
(
FStringBuilderBase& OutPathNameBuilder |
Appends the path to the object to the builder, does not reset builder. | |
| FString | GetClassPathName
(
EObjectFullNameFlags Flags |
Returns the path to the class for this object. | |
| FString | Returns the name for the asset in the form: Class'ObjectPath' | ||
| void | GetExportTextName
(
FStringBuilderBase& OutExportTextNameBuilder |
Populates OutExportTextNameBuilder with the name for the object in the form: Class'ObjectPath' | |
| FName | GetFName () |
Returns the name of the object in the form: ObjectName | |
| FString | GetFullName
(
EObjectFullNameFlags Flags |
Returns the full name for the object in the form: Class ObjectPath | |
| void | GetFullName
(
FStringBuilderBase& OutFullNameBuilder, |
Populates OutFullNameBuilder with the full name for the object in the form: Class ObjectPath | |
| FString | GetPathName () |
Returns the full path for the object in the form: ObjectPath | |
| bool | IsNull () |
||
| UObject * | |||
| UClass * | ResolveObjectRefClass
(
uint32 LoadFlags |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator==
(
const FObjectRef&& Other |