Ajouter Unreal Engine get world Settings
14
Unreal-Engine-get-world-Settings.md
Normal file
14
Unreal-Engine-get-world-Settings.md
Normal file
@@ -0,0 +1,14 @@
|
||||
Using dumper-7 SDK, it's possible to retrieve World settings
|
||||
|
||||
# Getting World
|
||||
```
|
||||
UWorld* world = UWorld::GetWorld();
|
||||
if (!world) return;
|
||||
```
|
||||
|
||||
# Retrieve World settings
|
||||
```
|
||||
AWorldSettings* worldSettings = world->K2_GetWorldSettings();
|
||||
if (worldSettings)
|
||||
worldSettings->TimeDilation = 0.5f; // Set world time dilation half speed. This affects everything (Pawns, physics ...)
|
||||
```
|
||||
Reference in New Issue
Block a user