Navigation
API > API/Plugins > API/Plugins/VariantManagerContent
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UVariant
References
| Module | VariantManagerContent |
| Header | /Engine/Plugins/Enterprise/VariantManagerContent/Source/VariantManagerContent/Public/Variant.h |
| Include | #include "Variant.h" |
Syntax
UCLASS&40;BlueprintType&41;
class UVariant : public UObject
Variables
| Type | Name | Description | |
|---|---|---|---|
| friend | FVariantImpl |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UVariant
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddBindings
(
const TArray< UVariantObjectBinding* >& NewBindings, |
In case of a duplicate binding these will destroy the older bindings. | |
| int32 | AddDependency
(
FVariantDependency& Dependency |
||
| void | DeleteDependency
(
int32 Index |
||
| AActor * | GetActor
(
int32 ActorIndex |
||
| UVariantObjectBinding * | GetBindingByName
(
const FString& ActorName |
||
| int32 | GetBindingIndex
(
UVariantObjectBinding* Binding |
||
| const TArray< UVariantObjectBinding * > & | GetBindings () |
||
| FVariantDependency & | 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 | |
| TArray< UVariant * > | GetDependents
(
ULevelVariantSets* LevelVariantSets, |
Returns all the variants that have this variant as a dependency. | |
| FText | |||
| int32 | GetNumActors () |
||
| int32 | |||
| UVariantSet * | GetParent () |
||
| UTexture2D * | GetThumbnail () |
Gets the thumbnail currently used for this variant. | |
| bool | IsActive () |
Returns true if none of our properties are dirty. | |
| bool | IsValidDependency
(
const UVariant* Other |
Returns if we can safely trigger Other as a dependency without the danger of cycles. | |
| void | RemoveBindings
(
const TArray< UVariantObjectBinding* >& Bindings |
||
| void | SetDependency
(
int32 Index, |
||
| void | SetDisplayText
(
const FText& NewDisplayText |
||
| void | SetThumbnailFromCamera
(
UObject* WorldContextObject, |
||
| void | Sets the thumbnail from the active editor viewport. Doesn't do anything if the Editor is not available. | ||
| void | SetThumbnailFromFile
(
FString FilePath |
||
| void | SetThumbnailFromTexture
(
UTexture2D* NewThumbnail |
Sets the thumbnail to use for this variant. Can receive nullptr to clear it. | |
| void | SwitchOn () |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | 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. |