Unreal Engine 5 · Blueprint → C++
Set Actor Enable Collision in Unreal Engine 5 C++UE Docs
The Set Actor Enable Collision Blueprint node is AActor::SetActorEnableCollision in C++. Calling SetActorEnableCollision(true) enables collision on the actor and all of its components.
Blueprint node & C++ equivalent
SetActorEnableCollision(true);What does the Set Actor Enable Collision node do?
Set Actor Enable Collision toggles collision for the entire actor in a single call, affecting every component that supports collision. It is useful for temporarily making an actor non-blocking — for example during a dash, spawn-in grace period, or while an object is being carried.
When disabled, the actor stops generating hits and overlaps and other actors pass through it.
The C++ equivalent
Call SetActorEnableCollision(true); to enable collision or SetActorEnableCollision(false); to disable it. The function applies the setting across the actor's components, so you do not have to toggle each component's collision individually.
To query the current state, call GetActorEnableCollision(), which returns a bool.
When to use it in C++
Use the actor-level call when you want a blanket on/off for the whole actor. When you need finer control — such as enabling query collision but disabling physics collision on one component — use the component's SetCollisionEnabled(ECollisionEnabled::Type) instead, which gives you per-component, per-mode control.
Frequently asked questions
How do I disable collision on a whole actor in UE5 C++?+
Call SetActorEnableCollision(false) on the actor. It disables collision across all of the actor's components at once.
How is SetActorEnableCollision different from SetCollisionEnabled?+
SetActorEnableCollision toggles collision for the entire actor, while SetCollisionEnabled is a per-component call that lets you pick a specific mode like query-only or physics-only.