NameOcclusion
The NameOcclusion Enum is used to set the Humanoid.NameOcclusion property.
Items 3
| History | Name | Value | Description | |
|---|---|---|---|---|
| 598 | NoOcclusion | 0 | Do not occlude (hide) any humanoid names. | |
| 51 | EnemyOcclusion | 1 | Occlude (hide) all enemy humanoid names. | |
| 598 | OccludeAll | 2 | Occlude (hide) all humanoid names. |
Description
NameOcclusion controls whether overhead name labels on Humanoid
characters are hidden when solid geometry blocks the line of sight between the
viewer and the character. When the local player's
Humanoid.NameOcclusion is set to EnemyOcclusion or OccludeAll, the
engine performs a raycast; if the character's head is behind a solid part, the
name label is not rendered for that frame. Setting the value to NoOcclusion
skips the raycast entirely and names are always visible regardless of
intervening geometry.
History 6
- 598 Change Index of OccludeAll from 0 to 2
- 598 Change Index of NoOcclusion from 2 to 0
- 51 Add OccludeAll
- 51 Add NoOcclusion
- 51 Add EnemyOcclusion
- 51 Add NameOcclusion