Navigation
API > API/Plugins > API/Plugins/PCG
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.
| Name | UPCGSchedulingPolicyDistanceAndDirection |
| Type | class |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/RuntimeGen/SchedulingPolicies/PCGSchedulingPolicyDistanceAndDirection.h |
| Include Path | #include "RuntimeGen/SchedulingPolicies/PCGSchedulingPolicyDistanceAndDirection.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType, ClassGroup=(Procedural))
class UPCGSchedulingPolicyDistanceAndDirection : public UPCGSchedulingPolicyBase
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UPCGSchedulingPolicyBase → UPCGSchedulingPolicyDistanceAndDirection
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bUseDirection | bool | Toggle whether or not direction is used to calculate the scheduling priority. | RuntimeGen/SchedulingPolicies/PCGSchedulingPolicyDistanceAndDirection.h |
|
| bUseDistance | bool | Toggle whether or not distance is used to calculate the scheduling priority. | RuntimeGen/SchedulingPolicies/PCGSchedulingPolicyDistanceAndDirection.h |
|
| bUseFrustumCulling | bool | With frustum culling enabled, only components whose bounds overlap the view frustum will be generated. | RuntimeGen/SchedulingPolicies/PCGSchedulingPolicyDistanceAndDirection.h |
|
| CleanupBoundsModifier | float | Multiplier to scale bounds by when comparing against the view frustum for clean up. | RuntimeGen/SchedulingPolicies/PCGSchedulingPolicyDistanceAndDirection.h |
|
| DirectionWeight | float | Scalar value used to increase/decrease the impact of direction in the scheduling priority. | RuntimeGen/SchedulingPolicies/PCGSchedulingPolicyDistanceAndDirection.h |
|
| DistanceWeight | float | RuntimeGen/SchedulingPolicies/PCGSchedulingPolicyDistanceAndDirection.h |
|
|
| GenerateBoundsModifier | float | Multiplier to scale bounds by when comparing against the view frustum for generation. | RuntimeGen/SchedulingPolicies/PCGSchedulingPolicyDistanceAndDirection.h |
|
| NetworkMode | EPCGSchedulingPolicyNetworkMode | Client/Server policy mode will determine which generation sources to consider. | RuntimeGen/SchedulingPolicies/PCGSchedulingPolicyDistanceAndDirection.h |
|