UVariant

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

VariantManagerContent

Header

/Engine/Plugins/Enterprise/VariantManagerContent/Source/VariantManagerContent/Public/Variant.h

Include

#include "Variant.h"

Syntax

UCLASS(BlueprintType)
class UVariant : public UObject

Variables

Name Description

Public variable

friend

 

FVariantImpl

Constructors

Name Description

Public function

UVariant

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

void

 

AddBindings

(
    const TArray< UVariantObjectBinding...,
    int32 Index
)

In case of a duplicate binding these will destroy the older bindings.

Public function UFunction Category

int32

 

AddDependency

(
    FVariantDependency& Dependency
)

Public function UFunction Category

void

 

DeleteDependency

(
    int32 Index
)

Public function UFunction BlueprintPure, Category

AActor *

 

GetActor

(
    int32 ActorIndex
)

Public function

UVariantObje...

 

GetBindingByName

(
    const FString& ActorName
)

Public function

int32

 

GetBindingIndex

(
    UVariantObjectBinding* Binding
)

Public function Const

const TArray...

 

GetBindings()

Public function UFunction BlueprintCallable, BlueprintPure, Category, Meta

FVariantDepe...

 

GetDependency

(
    int32 Index
)

Returning by reference in blueprint doesn't seem to work if we want to later modify the FVariantDependency, so here we leave the return type without UPARAM(ref) so C++ code can use it as ref, while this function in blueprint returns by value

Public function UFunction BlueprintCallable, Category

TArray< UVar...

 

GetDependents

(
    ULevelVariantSets* LevelVarian...,
    bool bOnlyEnabledDependencies
)

Returns all the variants that have this variant as a dependency.

Public function Const UFunction BlueprintPure, Category

FText

 

GetDisplayText()

Public function UFunction BlueprintPure, Category

int32

 

GetNumActors()

Public function UFunction BlueprintCallable, BlueprintPure, Category

int32

 

GetNumDependencies()

Public function UFunction BlueprintPure, Category

UVariantSet ...

 

GetParent()

Public function UFunction BlueprintCallable, Category

UTexture2D &...

 

GetThumbnail()

Gets the thumbnail currently used for this variant.

Public function UFunction BlueprintCallable, Category

bool

 

IsActive()

Returns true if none of our properties are dirty.

Public function Const

bool

 

IsValidDependency

(
    const UVariant* Other
)

Returns if we can safely trigger Other as a dependency without the danger of cycles.

Public function

void

 

RemoveBindings

(
    const TArray< UVariantObjectBinding...
)

Public function UFunction Category

void

 

SetDependency

(
    int32 Index,
    FVariantDependency& Dependency
)

Public function UFunction BlueprintCallable, Category

void

 

SetDisplayText

(
    const FText& NewDisplayText
)

Public function UFunction BlueprintCallable, Category, Meta

void

 

SetThumbnailFromCamera

(
    UObject* WorldContextObject,
    const FTransform& CameraTransform,
    float FOVDegrees,
    float MinZ,
    float Gamma
)

Public function UFunction BlueprintCallable, Category, Meta

void

 

SetThumbnailFromEditorViewport()

Sets the thumbnail from the active editor viewport. Doesn't do anything if the Editor is not available.

Public function UFunction BlueprintCallable, Category

void

 

SetThumbnailFromFile

(
    FString FilePath
)

Public function UFunction BlueprintCallable, Category

void

 

SetThumbnailFromTexture

(
    UTexture2D* NewThumbnail
)

Sets the thumbnail to use for this variant. Can receive nullptr to clear it.

Public function UFunction BlueprintCallable, Category

void

 

SwitchOn()

Overridden from UObject

Name Description

Public function Virtual

void

 

Serialize

(
    FArchive& Ar
)

Handles reading, writing, and reference collecting using FArchive.

Typedefs

Name

Description

FOnVariantChanged

Constants

Name

Description

OnDependenciesUpdated

Broadcast whenever we add/remove/modify a variant dependency.

OnThumbnailUpdated

Broadcast whenever we modify a variant thumbnail.