Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/UActorComponent
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/ActorComponent.h |
| Include | #include "Components/ActorComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/ActorComponent.cpp |
UFUNCTION (BlueprintCallable, Category="Components|Activation",
Meta=(UnsafeDuringActorConstruction="true"))
virtual void SetActive
(
bool bNewActive,
bool bReset
)
Remarks
Sets whether the component is active or not
Parameters
| Name | Description |
|---|---|
| bNewActive | The new active state of the component |
| bReset | Whether the activation should happen even if ShouldActivate returns false. |