unreal.StaticMeshDescription
¶
- class unreal.StaticMeshDescription(outer=None, name='None')¶
Bases:
unreal.MeshDescriptionBase
A wrapper for MeshDescription, customized for static meshes
C++ Source:
Module: StaticMeshDescription
File: StaticMeshDescription.h
- create_cube(center, half_extents, polygon_group) -> (polygon_id_plus_x=PolygonID, polygon_id_minus_x=PolygonID, polygon_id_plus_y=PolygonID, polygon_id_minus_y=PolygonID, polygon_id_plus_z=PolygonID, polygon_id_minus_z=PolygonID)¶
Create Cube
- Parameters
center (Vector) –
half_extents (Vector) –
polygon_group (PolygonGroupID) –
- Returns
polygon_id_plus_x (PolygonID):
polygon_id_minus_x (PolygonID):
polygon_id_plus_y (PolygonID):
polygon_id_minus_y (PolygonID):
polygon_id_plus_z (PolygonID):
polygon_id_minus_z (PolygonID):
- Return type
tuple
- get_vertex_instance_uv(vertex_instance_id, uv_index=0) → Vector2D¶
Get Vertex Instance UV
- Parameters
vertex_instance_id (VertexInstanceID) –
uv_index (int32) –
- Returns
- Return type
- set_polygon_group_material_slot_name(polygon_group_id, slot_name) → None¶
Set Polygon Group Material Slot Name
- Parameters
polygon_group_id (PolygonGroupID) –
slot_name (Name) –
- set_vertex_instance_uv(vertex_instance_id, uv, uv_index=0) → None¶
Set Vertex Instance UV
- Parameters
vertex_instance_id (VertexInstanceID) –
uv (Vector2D) –
uv_index (int32) –