FSubobjectPtr

Windows
MacOS
Linux

Deprecated

Inheritance Hierarchy

FSubobjectPtr

TSubobjectPtrDeprecated

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h

Include

#include "UObject/UObjectGlobals.h"

Syntax

class FSubobjectPtr

Variables

Name Description

Protected variable

UObject *

 

Object

Subobject pointer.

Constructors

Name Description

Protected function

FSubobjectPtr

(
    UObject* InObject
)

Constructor used by TSubobjectPtr.

Functions

Name Description

Public function Const

UObject *...

 

Get()

Gets the pointer to the subobject.

Public function Static

bool

 

IsInitialized

(
    const UObject* Ptr
)

Public function Const

bool

 

IsValid()

Checks if the subobject != nullptr.

Public function

void

 

Reset()

Resets the internal pointer to nullptr.

Protected function

void

 

Set

(
    UObject* InObject
)

Sets the object pointer. Does runtime checks to see if the assignment is allowed.

Operators

Name Description

Public function Const

 

operator bool()

Convenience operator.

Public function Const

bool

 

operator!=

(
    TYPE_OF_NULL Other
)

Public function Const

bool

 

operator==

(
    TYPE_OF_NULL Other
)

Compare against nullptr

Enums

Name

Description

Protected enum

EInvalidPtr

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss