unreal.VariantSet
¶
- class unreal.VariantSet(outer=None, name='None')¶
Bases:
unreal.Object
Variant Set
C++ Source:
Plugin: VariantManagerContent
Module: VariantManagerContent
File: VariantSet.h
- add_variant(variant) → None¶
Adds Variant to the VariantSet’s list of Variants
- Parameters
variant (Variant) –
- get_num_variants() → int32¶
Get Num Variants
- Returns
- Return type
int32
- get_parent() → LevelVariantSets¶
Get Parent
- Returns
- Return type
- get_thumbnail() → Texture2D¶
Gets the thumbnail currently used for this variant set
- Returns
- Return type
- get_variant(variant_index) → Variant¶
Get Variant
- Parameters
variant_index (int32) –
- Returns
- Return type
- remove_variant(variant) → None¶
Removes Variant from VariantSet, if that is its parent
- Parameters
variant (Variant) –
- remove_variant_by_name(variant_name) → None¶
Looks for a variant with VariantName within VariantSet and removes it, if it exists
- Parameters
variant_name (str) –
- set_thumbnail_from_camera(world_context_object, camera_transform, fov_degrees=50.0, min_z=50.0, gamma=2.2) → None¶
Set Thumbnail from Camera