载入中...
搜索中...
未找到
eve::ui::UIHost::WorldAnchor结构体 参考

Optional 3D-world projection for this UI host. 更多...

#include <UIHost.h>

Public 属性

bool enabled = false
 
float worldX = 0.f
 
float worldY = 0.f
 
float worldZ = 0.f
 
float offsetX = 0.f
 
float offsetY = 0.f
 
float safeMargin = 8.f
 
WorldAnchorEdgePolicy edgePolicy = WorldAnchorEdgePolicy::Hide
 
bool hideBehindCamera = true
 
bool distanceScale = false
 
float referenceDistance = 10.f
 
float minScale = 0.65f
 
float maxScale = 1.25f
 
WorldAnchorOverlapPolicy overlapPolicy = WorldAnchorOverlapPolicy::Allow
 
int overlapPriority = 0
 
float overlapPadding = 4.f
 
float maxDisplacement = 96.f
 
WorldAnchorState state = WorldAnchorState::Disabled
 
float screenX = 0.f
 
float screenY = 0.f
 
float depth = 0.f
 
float scale = 1.f
 
float displacementX = 0.f
 
float displacementY = 0.f
 

详细描述

Optional 3D-world projection for this UI host.

The world position and policy are authoritative input owned by UIHost. The resolved screen position/state are transient derived data refreshed by UISystem on the render thread. The link is value-based: destroying a scene object does not leave a pointer; its owner must stop updating or disable this anchor. Camera removal is detected every frame and reported as NoCamera. Restore/hot reload rebuilds the link from worldPosition.

在文件 UIHost.h 第 307 行定义.

类成员变量说明

◆ depth

float eve::ui::UIHost::WorldAnchor::depth = 0.f

在文件 UIHost.h 第 329 行定义.

◆ displacementX

float eve::ui::UIHost::WorldAnchor::displacementX = 0.f

在文件 UIHost.h 第 331 行定义.

◆ displacementY

float eve::ui::UIHost::WorldAnchor::displacementY = 0.f

在文件 UIHost.h 第 332 行定义.

◆ distanceScale

bool eve::ui::UIHost::WorldAnchor::distanceScale = false

在文件 UIHost.h 第 317 行定义.

◆ edgePolicy

WorldAnchorEdgePolicy eve::ui::UIHost::WorldAnchor::edgePolicy = WorldAnchorEdgePolicy::Hide

在文件 UIHost.h 第 315 行定义.

◆ enabled

bool eve::ui::UIHost::WorldAnchor::enabled = false

在文件 UIHost.h 第 308 行定义.

◆ hideBehindCamera

bool eve::ui::UIHost::WorldAnchor::hideBehindCamera = true

在文件 UIHost.h 第 316 行定义.

◆ maxDisplacement

float eve::ui::UIHost::WorldAnchor::maxDisplacement = 96.f

在文件 UIHost.h 第 324 行定义.

◆ maxScale

float eve::ui::UIHost::WorldAnchor::maxScale = 1.25f

在文件 UIHost.h 第 320 行定义.

◆ minScale

float eve::ui::UIHost::WorldAnchor::minScale = 0.65f

在文件 UIHost.h 第 319 行定义.

◆ offsetX

float eve::ui::UIHost::WorldAnchor::offsetX = 0.f

在文件 UIHost.h 第 312 行定义.

◆ offsetY

float eve::ui::UIHost::WorldAnchor::offsetY = 0.f

在文件 UIHost.h 第 313 行定义.

◆ overlapPadding

float eve::ui::UIHost::WorldAnchor::overlapPadding = 4.f

在文件 UIHost.h 第 323 行定义.

◆ overlapPolicy

WorldAnchorOverlapPolicy eve::ui::UIHost::WorldAnchor::overlapPolicy = WorldAnchorOverlapPolicy::Allow

在文件 UIHost.h 第 321 行定义.

◆ overlapPriority

int eve::ui::UIHost::WorldAnchor::overlapPriority = 0

在文件 UIHost.h 第 322 行定义.

◆ referenceDistance

float eve::ui::UIHost::WorldAnchor::referenceDistance = 10.f

在文件 UIHost.h 第 318 行定义.

◆ safeMargin

float eve::ui::UIHost::WorldAnchor::safeMargin = 8.f

在文件 UIHost.h 第 314 行定义.

◆ scale

float eve::ui::UIHost::WorldAnchor::scale = 1.f

在文件 UIHost.h 第 330 行定义.

◆ screenX

float eve::ui::UIHost::WorldAnchor::screenX = 0.f

在文件 UIHost.h 第 327 行定义.

◆ screenY

float eve::ui::UIHost::WorldAnchor::screenY = 0.f

在文件 UIHost.h 第 328 行定义.

◆ state

WorldAnchorState eve::ui::UIHost::WorldAnchor::state = WorldAnchorState::Disabled

在文件 UIHost.h 第 326 行定义.

◆ worldX

float eve::ui::UIHost::WorldAnchor::worldX = 0.f

在文件 UIHost.h 第 309 行定义.

◆ worldY

float eve::ui::UIHost::WorldAnchor::worldY = 0.f

在文件 UIHost.h 第 310 行定义.

◆ worldZ

float eve::ui::UIHost::WorldAnchor::worldZ = 0.f

在文件 UIHost.h 第 311 行定义.


该结构体的文档由以下文件生成: