UActorComponent::SetActive

Sets whether the component is active or not

Windows
MacOS
Linux

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

Syntax

virtual void SetActive
(
    bool bNewActive,
    bool bReset
)

Remarks

Sets whether the component is active or not

Parameters

Parameter

Description

bNewActive

The new active state of the component

bReset

Whether the activation should happen even if ShouldActivate returns false.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss