unreal.ScriptableToolLine

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

Bases: Object

Scriptable Tool Line

C++ Source:

  • Plugin: ScriptableToolsFramework

  • Module: ScriptableToolsFramework

  • File: ScriptableToolLine.h

set_line_color(color) None

Set the line’s color

Parameters:

color (Color) – The color the line should be rendered as

set_line_depth_bias(depth_bias) None

Set the line’s depth bias. The depth bias controls small micro adjustments in effective displacement towards or away from the camera, to prevent the line from causing clipping or z-fighting with other objects in the scene it’s overlaid directly on top of.

Parameters:

depth_bias (float) – The depth bias adjustment for the line

set_line_end(end) None

Set the ending position of the line

Parameters:

end (Vector) – The position in space of the end of the line

set_line_end_points(start, end) None

Set the starting and ending positions of the line

Parameters:
  • start (Vector) – The position in space of the start of the line

  • end (Vector) – The position in space of the end of the line

set_line_start(start) None

Set the starting position of the line

Parameters:

start (Vector) – The position in space of the start of the line

set_line_thickness(thickness) None

Set the line’s thickness

Parameters:

thickness (float) – The visual thickness in pixels the line should be rendered as