UMassRepresentationProcessor::SetActorEnabled

Enable/disable a spawned actor

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

UMassRepresentationProcessor::SetActorEnabled()

UMassCrowdRepresentationProcessor::SetActorEnabled()

References

Module

MassRepresentation

Header

/Engine/Plugins/Runtime/MassGameplay/Source/MassRepresentation/Public/MassRepresentationProcessor.h

Include

#include "MassRepresentationProcessor.h"

Source

/Engine/Plugins/Runtime/MassGameplay/Source/MassRepresentation/Private/MassRepresentationProcessor.cpp

Syntax

virtual void SetActorEnabled
(
    const EActorEnabledType EnabledType,
    AActor & Actor,
    const int32 EntityIdx,
    FMassCommandBuffer & CommandBuffer
)

Remarks

Enable/disable a spawned actor

Parameters

Parameter

Description

EnabledType

is the type of enabling to do on this actor

Actor

is the actual actor to perform enabling type on

EntityIdx

is the entity index currently processing

CommandBuffer

to queue up anything that is thread sensitive