UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
LevelScriptActor.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"
8#include "LevelScriptActor.generated.h"
9
24UCLASS(notplaceable, meta=(ChildCanTick, KismetHideOverrides = "ReceiveAnyDamage,ReceivePointDamage,ReceiveRadialDamage,ReceiveActorBeginOverlap,ReceiveActorEndOverlap,ReceiveHit,ReceiveDestroyed,ReceiveActorBeginCursorOver,ReceiveActorEndCursorOver,ReceiveActorOnClicked,ReceiveActorOnReleased,ReceiveActorOnInputTouchBegin,ReceiveActorOnInputTouchEnd,ReceiveActorOnInputTouchEnter,ReceiveActorOnInputTouchLeave"), HideCategories=(Collision,Rendering,Transformation), MinimalAPI)
25class ALevelScriptActor : public AActor
26{
28
29 // --- Utility Functions ----------------------------
30
31
32 UFUNCTION(BlueprintCallable, meta=(BlueprintProtected = "true"), Category="Miscellaneous")
33 ENGINE_API virtual bool RemoteEvent(FName EventName);
34
44 UFUNCTION(BlueprintCallable, meta=(BlueprintProtected = "true"), Category="Game|Cinematic")
45 ENGINE_API virtual void SetCinematicMode(bool bCinematicMode, bool bHidePlayer = true, bool bAffectsHUD = true, bool bAffectsMovement = false, bool bAffectsTurning = false);
46
47 // --- Level State Functions ------------------------
49 UFUNCTION(BlueprintImplementableEvent, BlueprintAuthorityOnly)
51
58 UFUNCTION(BlueprintImplementableEvent)
59 ENGINE_API void WorldOriginLocationChanged(FIntVector OldOriginLocation, FIntVector NewOriginLocation);
60
61 //~ Begin UObject Interface
62 ENGINE_API virtual void PreInitializeComponents() override;
63 //~ End UObject Interface
64
65 //~ Begin AActor Interface
66 ENGINE_API virtual void EnableInput(class APlayerController* PlayerController) override;
67 ENGINE_API virtual void DisableInput(class APlayerController* PlayerController) override;
68
69#if WITH_EDITOR
70 virtual bool SupportsExternalPackaging() const override { return false; }
71
74#endif
75 //~ End AActor Interface
76
77 bool InputEnabled() const { return bInputEnabled; }
78
79private:
80 UPROPERTY()
81 uint32 bInputEnabled:1;
82};
83
84
85
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
return true
Definition ExternalRpcRegistry.cpp:601
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition Actor.h:257
Definition PlayerController.h:261
Definition NameTypes.h:617
Definition Array.h:670
@ false
Definition radaudio_common.h:23