Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/RuntimeGen > API/Plugins/PCG/RuntimeGen/SchedulingPolicies
Inheritance Hierarchy
- UObject
- UPCGSchedulingPolicyBase
- UPCGSchedulingPolicyDistanceAndDirection
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/RuntimeGen/SchedulingPolicies/PCGSchedulingPolicyDistanceAndDirection.h |
| Include | #include "RuntimeGen/SchedulingPolicies/PCGSchedulingPolicyDistanceAndDirection.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType, ClassGroup=(Procedural))
class UPCGSchedulingPolicyDistanceAndDirection : public UPCGSchedulingPolicyBase
Remarks
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.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bUseDirection | Toggle whether or not direction is used to calculate the scheduling priority. | |
| bool | bUseDistance | Toggle whether or not distance is used to calculate the scheduling priority. | |
| float | DirectionWeight | Scalar value used to increase/decrease the impact of direction in the scheduling priority. | |
| float | DistanceWeight | Scalar value used to increase/decrease the impact of distance in the scheduling priority. |
Overridden from UPCGSchedulingPolicyBase
| Type | Name | Description | |
|---|---|---|---|
| double | CalculatePriority
(
const IPCGGenSourceBase* InGenSource, |
Calculate the runtime scheduling priority with respect to a Generation Source. | |
| bool | IsEquivalent
(
const UPCGSchedulingPolicyBase* OtherSchedulingPolicy |
A SchedulingPolicy is equivalent to another SchedulingPolicy if they are the same (same ptr), or if they have the same type and parameter values. |