UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ScopedSuspendRerunConstructionScripts.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#pragma once
4
5
#include "
CoreMinimal.h
"
6
#include "
GameFramework/Actor.h
"
7
8
#define UE_API ENGINE_API
9
10
#if WITH_EDITOR
11
12
class
FScopedSuspendRerunConstructionScripts
13
{
14
public
:
15
UE_API
FScopedSuspendRerunConstructionScripts
();
16
UE_API
~FScopedSuspendRerunConstructionScripts
();
17
18
// Called by AActor::RerunConstructionScripts() to see if it's suspended
19
static
bool
IsSuspended()
20
{
21
return
SuspensionCount
> 0;
22
}
23
24
// Queues an actor for a deferred rerun
25
static
UE_API
void
DeferRerun
(
AActor
*
Actor
);
26
27
private
:
28
// How many nested scopes are active
29
static
UE_API
int32
SuspensionCount
;
30
31
// All actors that attempted to rerun while suspended
32
static
UE_API
TSet<TWeakObjectPtr<AActor>
>
PendingActors
;
33
};
34
35
#endif
36
37
#undef UE_API
Actor.h
CoreMinimal.h
int32
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition
Platform.h:1125
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
EDatasmithElementType::Actor
@ Actor
UE_API
#define UE_API
Definition
SColorGradingComponentViewer.h:12
AActor
Definition
Actor.h:257
Engine
Source
Runtime
Engine
Public
ScopedSuspendRerunConstructionScripts.h
Generated by
1.9.8