unreal.ScriptableToolTriangle

class unreal.ScriptableToolTriangle(outer: Object | None = None, name: Name | str = 'None')

Bases: Object

Scriptable Tool Triangle

C++ Source:

  • Plugin: ScriptableToolsFramework

  • Module: ScriptableToolsFramework

  • File: ScriptableToolTriangle.h

set_triangle_colors(a, b, c) None
  • Set the vertex colors of the triangle

Parameters:
  • a (Color) – The vertex color of the first corner of the triangle *

  • b (Color) – The vertex color of the second corner of the triangle *

  • c (Color) – The vertex color of the third corner of the triangle

set_triangle_material(material) None
  • Set the material of the triangle

Parameters:

material (MaterialInterface) – The new material that should be assigned to the triangle

set_triangle_normals(a, b, c) None
  • Set the normal values of the triangle

Parameters:
  • a (Vector) – The normal of the first corner of the triangle *

  • b (Vector) – The normal of the second corner of the triangle *

  • c (Vector) – The normal of the third corner of the triangle

set_triangle_points(a, b, c) None
  • Set the points of the triangle

Parameters:
  • a (Vector) – The position of the first corner of the triangle *

  • b (Vector) – The position of the second corner of the triangle *

  • c (Vector) – The position of the third corner of the triangle

set_triangle_u_vs(a, b, c) None
  • Set the UV coordinates of the triangle

Parameters:
  • a (Vector2D) – The UV coordinate of the first corner of the triangle *

  • b (Vector2D) – The UV coordinate of the second corner of the triangle *

  • c (Vector2D) – The UV coordinate of the third corner of the triangle