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/PCGSchedulingPolicyBase.h |
| Include | #include "RuntimeGen/SchedulingPolicies/PCGSchedulingPolicyBase.h" |
Syntax
UCLASS (Abstract, BlueprintType, ClassGroup=(Procedural))
class UPCGSchedulingPolicyBase : public UObject
Remarks
Scheduling Policies provide custom logic to efficiently schedule work for the Runtime Generation Scheduling system. A higher priority value means the work will be scheduled sooner, and larger grid sizes will always have a higher priority than lower grid sizes.
If multiple Generation Sources overlap a component, the highest priority value will be used for scheduling.
Functions
| 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. | |
| void | SetShouldDisplayProperties
(
bool bInShouldDisplayProperties |
Sets whether or not properties should be displayed in the editor.Used to hide instanced SchedulingPolicy properties when runtime generation is not enabled. |