unreal.GeometryScriptUVList

class unreal.GeometryScriptUVList

Bases: StructBase

Geometry Script UVList

C++ Source:

  • Plugin: GeometryScripting

  • Module: GeometryScriptingCore

  • File: GeometryScriptTypes.h

clear_uv_list(clear_uv) None

Resets all the items in the Vector List to the given Clear UV value.

Parameters:

clear_uv (Vector2D) –

convert_uv_list_to_array() Array[Vector2D]

Converts a UV List to an array of FVector2Ds (UV Array).

Returns:

uv_array (Array[Vector2D]):

Return type:

Array[Vector2D]

duplicate_uv_list() GeometryScriptUVList

Duplicates the contents of UV List into Duplicate List.

Returns:

duplicate_list (GeometryScriptUVList):

Return type:

GeometryScriptUVList

get_uv_list_item(index) -> (Vector2D, is_valid_index=bool)

Returns the FVector2D stored in the UV List at the specified location. If the Index is not valid for this UV List, the Zero Vector will be returned and bIsValidIndex set to false.

Parameters:

index (int32) –

Returns:

is_valid_index (bool):

Return type:

bool

get_uv_list_last_index() int32

Returns the index of the last item in the UV List. If UV List is empty or invalid, the value -1 will be returned.

Return type:

int32

get_uv_list_length() int32

Returns the number of items in the UV List.

Return type:

int32

set_uv_list_item(index, new_uv) bool

Updates the value of the FVector2D stored in the UV List at the specified location. If the Index is invalid, the operation will fail and bValidIndex will be set to false on return.

Parameters:
  • index (int32) –

  • new_uv (Vector2D) –

Returns:

is_valid_index (bool):

Return type:

bool