ALiSplatActor
API参考 · ULodGlspComponent · 公共类型
概述
text
Module GaussianSplatting
Header LiSplatActor.h
Include #include "LiSplatActor.h"ALiSplatActor 是场景中的高斯泼溅 Actor。设置 ULiSplatAsset 后,它会为资产中的每个 Chunk 创建并管理一个 ULodGlspComponent。
方法列表
资产
- SetSplatAsset:设置或清除资产。
- GetLiSplatAsset:读取当前资产。
- GetChunkComponentCount:获取 Chunk 组件数。
- GetTotalSplatCount:获取资产总点数。
LOD
- SetScreenPixelFilterSizeMode:选择动态过滤使用的屏幕尺寸。
- AdjustScreenPixelQuality:按固定步长调整 LOD 质量。
渲染与光照
- SetLightMode / GetLightMode
- SetOpacityScale
- SetSplatScale
- SetRenderFeatureSettings / GetRenderFeatureSettings
- SetNormalProxySettings / GetNormalProxySettings
- SetShadowProxySettings / GetShadowProxySettings
- SetPrimitiveLightingSettings / GetPrimitiveLightingSettings
- SetLiSplatLightingChannels
编辑器操作
- Stat:显示性能统计。
- LocateDataToScene:在视口中定位数据。
补充参考
C++ 使用
- 在项目模块的
Build.cs中添加GaussianSplatting。 - 引入头文件并设置资产:
cpp
#include "LiSplatActor.h"
SplatActor->SetSplatAsset(SplatAsset);
SplatActor->SetLightMode(ELightMode::Lit);详见 API参考。