UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
GameplayStatics.cpp File Reference
#include "Kismet/GameplayStatics.h"
#include "Engine/Blueprint.h"
#include "Engine/Engine.h"
#include "Engine/GameInstance.h"
#include "Engine/GameViewportClient.h"
#include "Engine/OverlapResult.h"
#include "Serialization/MemoryReader.h"
#include "Serialization/MemoryWriter.h"
#include "Serialization/ObjectAndNameAsStringProxyArchive.h"
#include "EngineLogs.h"
#include "Misc/PackageName.h"
#include "Kismet/GameplayStaticsTypes.h"
#include "Misc/EngineVersion.h"
#include "GameFramework/CharacterMovementComponent.h"
#include "GameFramework/DamageType.h"
#include "Kismet/KismetSystemLibrary.h"
#include "SceneView.h"
#include "Components/PrimitiveComponent.h"
#include "Math/InverseRotationMatrix.h"
#include "UObject/Package.h"
#include "Engine/CollisionProfile.h"
#include "ParticleHelper.h"
#include "Particles/ParticleSystem.h"
#include "Particles/ParticleSystemComponent.h"
#include "Engine/LevelStreaming.h"
#include "Engine/LocalPlayer.h"
#include "DrawDebugHelpers.h"
#include "EngineUtils.h"
#include "AudioDevice.h"
#include "SaveGameSystem.h"
#include "DVRStreaming.h"
#include "PlatformFeatures.h"
#include "GameFramework/Character.h"
#include "Sound/DialogueWave.h"
#include "GameFramework/SaveGame.h"
#include "GameFramework/GameStateBase.h"
#include "GameFramework/PlayerState.h"
#include "PhysicalMaterials/PhysicalMaterial.h"
#include "Components/DecalComponent.h"
#include "Components/ForceFeedbackComponent.h"
#include "LandscapeProxy.h"
#include "Logging/MessageLog.h"
#include "Components/HierarchicalInstancedStaticMeshComponent.h"
#include "PhysicsEngine/PhysicsSettings.h"
#include "PhysicsEngine/BodySetup.h"
#include "Engine/SceneCapture2D.h"
#include "Engine/TextureRenderTarget2D.h"
#include "Components/SceneCaptureComponent2D.h"
#include "Sound/SoundCue.h"
#include "Audio/ActorSoundParameterInterface.h"
#include "Audio/AudioTraceUtil.h"
#include "Engine/DamageEvents.h"

Classes

struct  FSaveGameFileVersion
 
struct  FSaveGameHeader
 

Namespaces

namespace  GameplayStatics
 

Macros

#define LOCTEXT_NAMESPACE   "GameplayStatics"
 

Functions

AActorGameplayStatics::GetActorOwnerFromWorldContextObject (UObject *WorldContextObject)
 
const AActorGameplayStatics::GetActorOwnerFromWorldContextObject (const UObject *WorldContextObject)
 
 DECLARE_CYCLE_STAT (TEXT("BreakHitResult"), STAT_BreakHitResult, STATGROUP_Game)
 
 DECLARE_CYCLE_STAT (TEXT("MakeHitResult"), STAT_MakeHitResult, STATGROUP_Game)
 
 DECLARE_CYCLE_STAT (TEXT("SpawnTime"), STAT_SpawnTime, STATGROUP_Game)
 
UParticleSystemComponent * CreateParticleSystem (UParticleSystem *EmitterTemplate, UWorld *World, AActor *Actor, bool bAutoDestroy, EPSCPoolMethod PoolingMethod)
 
UDecalComponentCreateDecalComponent (class UMaterialInterface *DecalMaterial, FVector DecalSize, UWorld *World, AActor *Actor, float LifeSpan)
 
UForceFeedbackComponentCreateForceFeedbackComponent (UForceFeedbackEffect *FeedbackEffect, AActor *Actor, const bool bLooping, const float IntensityMultiplier, UForceFeedbackAttenuation *AttenuationSettings, const bool bAutoDestroy)
 

Macro Definition Documentation

◆ LOCTEXT_NAMESPACE

#define LOCTEXT_NAMESPACE   "GameplayStatics"

Function Documentation

◆ CreateDecalComponent()

UDecalComponent * CreateDecalComponent ( class UMaterialInterface DecalMaterial,
FVector  DecalSize,
UWorld World,
AActor Actor,
float  LifeSpan 
)

◆ CreateForceFeedbackComponent()

UForceFeedbackComponent * CreateForceFeedbackComponent ( UForceFeedbackEffect FeedbackEffect,
AActor Actor,
const bool  bLooping,
const float  IntensityMultiplier,
UForceFeedbackAttenuation AttenuationSettings,
const bool  bAutoDestroy 
)

◆ CreateParticleSystem()

UParticleSystemComponent * CreateParticleSystem ( UParticleSystem EmitterTemplate,
UWorld World,
AActor Actor,
bool  bAutoDestroy,
EPSCPoolMethod  PoolingMethod 
)

◆ DECLARE_CYCLE_STAT() [1/3]

DECLARE_CYCLE_STAT ( TEXT("BreakHitResult")  ,
STAT_BreakHitResult  ,
STATGROUP_Game   
)

◆ DECLARE_CYCLE_STAT() [2/3]

DECLARE_CYCLE_STAT ( TEXT("MakeHitResult")  ,
STAT_MakeHitResult  ,
STATGROUP_Game   
)

◆ DECLARE_CYCLE_STAT() [3/3]

DECLARE_CYCLE_STAT ( TEXT("SpawnTime")  ,
STAT_SpawnTime  ,
STATGROUP_Game   
)