unreal.PCGSchedulingPolicyDistanceAndDirection

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

Bases: PCGSchedulingPolicyBase

SchedulingPolicyDistanceAndDirection uses distance from the generating volume and alignment with view direction to choose the most important volumes to generate.

Distance and Direction are calculated with respect to the Generation Source.

C++ Source:

  • Plugin: PCG

  • Module: PCG

  • File: PCGSchedulingPolicyDistanceAndDirection.h

Editor Properties: (see get_editor_property/set_editor_property)

  • direction_weight (float): [Read-Write] Scalar value used to increase/decrease the impact of direction in the scheduling priority.

  • distance_weight (float): [Read-Write] Scalar value used to increase/decrease the impact of distance in the scheduling priority.

  • use_direction (bool): [Read-Write] Toggle whether or not direction is used to calculate the scheduling priority.

  • use_distance (bool): [Read-Write] Toggle whether or not distance is used to calculate the scheduling priority.

property direction_weight: float

[Read-Write] Scalar value used to increase/decrease the impact of direction in the scheduling priority.

Type:

(float)

property distance_weight: float

[Read-Write] Scalar value used to increase/decrease the impact of distance in the scheduling priority.

Type:

(float)

property use_direction: bool

[Read-Write] Toggle whether or not direction is used to calculate the scheduling priority.

Type:

(bool)

property use_distance: bool

[Read-Write] Toggle whether or not distance is used to calculate the scheduling priority.

Type:

(bool)