MLevelStatics
- Module
- Game
- Header
#include "Game/MLevelStatics.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Public functions
| Returns | Name | Description |
|---|---|---|
int32_t | FindActorsOfClassInRadius | name matching is exact. |
int32_t | FindActorsWithTagInRadius | |
int32_t | FindActorsNamedInRadius | |
int32_t | FindActorsInRadius | |
int32_t | GetFoundActorCount | |
AActor* | GetFoundActor | |
float | GetFoundActorDistance | |
AActor* | FindActorByName | |
AActor* | FindNearestActorOfClass | |
int32_t | GetActorCount | |
float | GetSceneFloat | Scene environment, keyed by name so a knob added to SceneEnvironment is one table row here rather than a new reflected pair. |
bool | SetSceneFloat | |
Vec3 | GetSceneVector | |
bool | SetSceneVector | |
bool | GetSceneBool | |
bool | SetSceneBool | |
std::string | GetSceneString | |
bool | SetSceneString | |
AActor* | SpawnActorAtTransform | Spawn with a whole transform. |
bool | LoadStreamingRegion | Level streaming. |
bool | UnloadStreamingRegion | |
bool | IsStreamingRegionLoaded | |
void | SetDataLayerActive | |
bool | IsDataLayerActive | |
void | SetSceneOverride | Tests and headless hosts have no SceneManager; they hand the scene in. |
Scene* | ResolveScene |
Function details
FindActorsOfClassInRadius
int32_t FindActorsOfClassInRadius(const std::string& className, const Vec3& origin, float radius)name matching is exact.
FindActorsWithTagInRadius
int32_t FindActorsWithTagInRadius(const std::string& tag, const Vec3& origin, float radius)FindActorsNamedInRadius
int32_t FindActorsNamedInRadius(const std::string& name, const Vec3& origin, float radius)FindActorsInRadius
int32_t FindActorsInRadius(const Vec3& origin, float radius)GetFoundActorCount
int32_t GetFoundActorCount() constGetFoundActor
AActor* GetFoundActor(int32_t index) constGetFoundActorDistance
float GetFoundActorDistance(int32_t index) constFindActorByName
AActor* FindActorByName(const std::string& name) constFindNearestActorOfClass
AActor* FindNearestActorOfClass(const std::string& className, const Vec3& origin) constGetActorCount
int32_t GetActorCount() constGetSceneFloat
float GetSceneFloat(const std::string& key) constScene environment, keyed by name so a knob added to SceneEnvironment is one table row here rather than a new reflected pair. Unknown keys read as zero / false / empty and refuse the write with a warning naming the key. Keys: ambient_intensity, ambient_color, ibl_enabled, ibl_intensity, fog_enabled, fog_color, fog_density, fog_start, fog_end, shadow_max_distance, skybox, exposure.
SetSceneFloat
bool SetSceneFloat(const std::string& key, float value)GetSceneVector
Vec3 GetSceneVector(const std::string& key) constSetSceneVector
bool SetSceneVector(const std::string& key, const Vec3& value)GetSceneBool
bool GetSceneBool(const std::string& key) constSetSceneBool
bool SetSceneBool(const std::string& key, bool value)GetSceneString
std::string GetSceneString(const std::string& key) constSetSceneString
bool SetSceneString(const std::string& key, const std::string& value)SpawnActorAtTransform
AActor* SpawnActorAtTransform(const std::string& className, const Vec3& location, const Vec3& rotationDegrees, const Vec3& scale)Spawn with a whole transform. Rotation is Euler degrees, matching the GetActorRotationEuler / SetActorRotationEuler pair. Spawn-shaped (the name, the Object return, the class name first), so a Visual Script class's Expose on Spawn variables ride as extra pins exactly as they do on SpawnActorByClass.
LoadStreamingRegion
bool LoadStreamingRegion(const std::string& regionName)Level streaming. A streaming region — the named group of sectors the World Partition panel authors — is this world's streaming level. Loading pins every cell, so it streams in and stays wherever the viewers are; unloading drops the pin and queues the unload. A cell a viewer is standing in streams straight back in: distance streaming still owns everything a graph has not pinned.
UnloadStreamingRegion
bool UnloadStreamingRegion(const std::string& regionName)IsStreamingRegionLoaded
bool IsStreamingRegionLoaded(const std::string& regionName) constSetDataLayerActive
void SetDataLayerActive(const std::string& layerName, bool active)IsDataLayerActive
bool IsDataLayerActive(const std::string& layerName) constSetSceneOverride
static void SetSceneOverride(Scene* scene)Tests and headless hosts have no SceneManager; they hand the scene in.
ResolveScene
static Scene* ResolveScene()