Language:
Discover
By Skill Level
By Category

TAttribute

Choose your OS:

Syntax

template<typename ObjectType>
class TAttribute

Remarks

Attribute object

Constructors

Name Description

Public function

TAttribute()

Default constructor.

Public function

TAttribute

(
    const OtherType& InInitialValue
)

Construct implicitly from an initial value

Public function

TAttribute

(
    TSharedRef < SourceType > InUserObje...,
    typename FGetter::template TSPMetho...
)

Constructs by binding an arbitrary function that will be called to generate this attribute's value on demand.

Public function

TAttribute

(
    SourceType* InUserObject,
    typename FGetter::template TSPMetho...
)

Constructs by binding an arbitrary function that will be called to generate this attribute's value on demand.

Functions

Name Description

Public function

void

 

Bind

(
    TSharedRef < SourceType > InUserObje...,
    typename FGetter::template TSPMetho...
)

Binds an arbitrary function that will be called to generate this attribute's value on demand.

Public function

void

 

Bind

(
    SourceType* InUserObject,
    typename FGetter::template TSPMetho...
)

Binds an arbitrary function that will be called to generate this attribute's value on demand.

Public function

void

 

Bind

(
    const FGetter & InGetter
)

Binds an arbitrary function that will be called to generate this attribute's value on demand.

Public function

void

 

BindRaw

(
    SourceType* InUserObject,
    typename FGetter::template TRawMeth...
)

Binds an arbitrary function that will be called to generate this attribute's value on demand.

Public function

void

 

BindStatic

(
    typename FGetter::FStaticDelegate::...
)

Binds an arbitrary function that will be called to generate this attribute's value on demand.

Public function

void

 

BindUFunction

(
    SourceType* InUserObject,
    const FName & InFunctionName
)

Binds an arbitrary function that will be called to generate this attribute's value on demand.

Public function

void

 

BindUObject

(
    SourceType* InUserObject,
    typename FGetter::template TUObject...
)

Binds an arbitrary function that will be called to generate this attribute's value on demand.

Public function Static

TAttribute

 

Create

(
    const FGetter & InGetter
)

Static: Creates an attribute that's pre-bound to the specified 'getter' delegate

Public function Static

TAttribute < ...

 

Create

(
    SourceType* InUserObject,
    const FName & InFunctionName
)

Creates an attribute by binding an arbitrary function that will be called to generate this attribute's value on demand.

Public function Static

TAttribute < ...

 

Create

(
    TFunction < ObjectType(void)>&& InL...
)

Public function Static

TAttribute

 

Create

(
    typename FGetter::FStaticDelegate::...
)

Creates an attribute by binding an arbitrary function that will be called to generate this attribute's value on demand.

Public function

const Object...

 

Get

(
    const ObjectType& DefaultValue
)

Gets the attribute's current value.

Public function

const Object...

 

Get()

Gets the attribute's current value. Assumes that the attribute is set.

The attribute's value

Public function

const FGette ...

 

GetBinding()

Gets the attribute's 'getter' which can be bound or unbound

The attribute's FGetter.

Public function

bool

 

IdenticalTo

(
    const TAttribute & InOther
)

Is this attribute identical to another TAttribute .

Public function

bool

 

IsBound()

Checks to see if this attribute has a 'getter' function bound

Public function

bool

 

IsSet()

Was this TAttribute ever assigned?

Public function

void

 

Set

(
    const OtherType& InNewValue
)

Sets the attribute's value

Typedefs

Name

Description

FGetter

Attribute 'getter' delegate

ObjectType GetValue() const

The attribute's value

References

Module

Core

Header

Runtime/Core/Public/Misc/Attribute.h