unreal.LevelVariantSets

class unreal.LevelVariantSets(outer=None, name='None')

Bases: unreal.Object

Level Variant Sets

C++ Source:

  • Plugin: VariantManagerContent

  • Module: VariantManagerContent

  • File: LevelVariantSets.h

add_variant_set(variant_set)None

Adds VariantSet to the LevelVariantSets’ list of VariantSets

Parameters

variant_set (VariantSet) –

get_num_variant_sets()int32

Get Num Variant Sets

Returns

Return type

int32

get_variant_set(variant_set_index)VariantSet

Get Variant Set

Parameters

variant_set_index (int32) –

Returns

Return type

VariantSet

get_variant_set_by_name(variant_set_name)VariantSet

Get Variant Set by Name

Parameters

variant_set_name (str) –

Returns

Return type

VariantSet

remove_variant_set(variant_set)None

Removes VariantSet from LevelVariantSets, if that is its parent

Parameters

variant_set (VariantSet) –

remove_variant_set_by_name(variant_set_name)None

Looks for a variant set with VariantSetName within LevelVariantSets and removes it, if it exists

Parameters

variant_set_name (str) –