载入中...
搜索中...
未找到
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.
类成员变量说明
◆ depth
◆ displacementX
◆ displacementY
◆ distanceScale
◆ edgePolicy
| WorldAnchorEdgePolicy eve::ui::UIHost::WorldAnchor::edgePolicy = WorldAnchorEdgePolicy::Hide |
◆ enabled
◆ hideBehindCamera
◆ maxDisplacement
◆ maxScale
◆ minScale
◆ offsetX
◆ offsetY
◆ overlapPadding
◆ overlapPolicy
| WorldAnchorOverlapPolicy eve::ui::UIHost::WorldAnchor::overlapPolicy = WorldAnchorOverlapPolicy::Allow |
◆ overlapPriority
◆ referenceDistance
◆ safeMargin
◆ scale
◆ screenX
◆ screenY
◆ state
| WorldAnchorState eve::ui::UIHost::WorldAnchor::state = WorldAnchorState::Disabled |
◆ worldX
◆ worldY
◆ worldZ
该结构体的文档由以下文件生成:
- src/modules/ui/UIHost.h