Main Content

Sim3dRelease

C++ method that releases actor in Unreal Engine 3D simulation

Since R2021b

Description

The C++ method void ASetGetActorLocation::Sim3dRelease() releases an actor in the Unreal Engine® 3D simulation environment. The Unreal Engine AActor::EndPlay class calls the Sim3dRelease method when the 3D simulation ends.

example

Examples

collapse all

void ASetGetActorLocation::Sim3dRelease()
{
   Super::Sim3dRelease();
   if (MessageReader) {
          StopSimulation3DMessageReader (SignalReader);
   }
   MessageReader = nullptr;   

   if (MessageWriter) {
          StopSimulation3DMessageWriter (SignalWriter);
   }
   MessageWriter = nullptr;
}

Version History

Introduced in R2021b