Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UPrimitiveComponent
Description
[EXPERIMENTAL] Set whether this component allows Partial Island Sleeping for the island it is in. Note that Partial Island Sleeping is a CPU optimization disabling non-moving bodies in the solver. This feature is useful for scenes with many rigid bodies but can affect the physics behavior.
| Name | SetAllowPartialIslandSleep |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/PrimitiveComponent.h |
| Include Path | #include "Components/PrimitiveComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PrimitiveComponentPhysics.cpp |
UFUNCTION (BlueprintCallable, Category="Physics")
virtual void SetAllowPartialIslandSleep
(
bool InAllowPartialIslandSleep,
FName BoneName
)