TEnum

Metasound Enum Wrapper

Choose your operating system:

Windows

macOS

Linux

References

Module

MetasoundFrontend

Header

/Engine/Plugins/Runtime/Metasound/Source/MetasoundFrontend/Public/MetasoundEnum.h

Include

#include "MetasoundEnum.h"

Syntax

template<typename EnumType, EnumType DefaultValue>
class TEnum

Remarks

Metasound Enum Wrapper

Constructors

Name Description

Public function

TEnum

(
    EnumType InValue
)

Allow Non-enum class Enum or Enum class that's are derived from int32.

Public function

TEnum

(
    int32 InIntValue
)

From Int32 (this is the common path from a Literal).

Public function

TEnum

(
    FName InValueName
)

From Name.

Public function

TEnum

(
    const FString& InString
)

Slow, construct from FString to FName.

Functions

Name Description

Public function Const

EnumType

 

Get()

Public function Static

TArray< FNam...

 

GetAllNames()

Return all possible Names.

Public function Static

TOptional< E...

 

NameToEnum

(
    FName InValue
)

Convert from Name to EnumValue (if possible).

Public function Const

int32

 

ToInt()

Public function Const

TOptional< F...

 

ToName()

Convert to its FName (if possible).

Public function Static

TOptional< F...

 

ToName

(
    EnumType InValue
)

Convert from EnumValue to FName (if possible).

Operators

Name Description

Public function Const

 

operator EnumType()

Conversion operator to automatically convert this to its underlying enum type.

Typedefs

Name

Description

InnerType