# C_NamePlateManager: World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/C_NamePlateManager

## Functions

### C_NamePlateManager.GetNamePlateHitTestInsets

```lua
left, right, top, bottom = C_NamePlateManager.GetNamePlateHitTestInsets(type)
```

Returns the values used to adjust the hit testing area for nameplates.

Arguments:
- `type`: NamePlateType

Returns:
- `left`: uiUnit
- `right`: uiUnit
- `top`: uiUnit
- `bottom`: uiUnit

### C_NamePlateManager.IsNamePlateUnitBehindCamera

```lua
isBehindCamera = C_NamePlateManager.IsNamePlateUnitBehindCamera(unitToken)
```

Returns whether the unit to which the nameplate is attached is behind the player's camera.

Arguments:
- `unitToken`: UnitTokenNamePlate

Returns:
- `isBehindCamera`: bool

### C_NamePlateManager.SetNamePlateHitTestInsets

```lua
C_NamePlateManager.SetNamePlateHitTestInsets(type, left, right, top, bottom)
```

Provide values to adjust the hit testing area for nameplates. Positive values will decrease the hit test area, negative values will increase it. Note that all hit testing is clamped to the bounds of the nameplate and can not be moved outside it.

Arguments:
- `type`: NamePlateType
- `left`: uiUnit
- `right`: uiUnit
- `top`: uiUnit
- `bottom`: uiUnit

### C_NamePlateManager.SetNamePlateSimplified

```lua
C_NamePlateManager.SetNamePlateSimplified(unitToken, isSimplified)
```

Set whether the nameplate attached to a unit is considered simplified, which can change the way it's displayed.

Arguments:
- `unitToken`: UnitTokenNamePlate
- `isSimplified`: bool

## Events

### FORBIDDEN_NAME_PLATE_CREATED

Payload, after the event's name:
- `namePlateFrame`: NamePlateFrame

### FORBIDDEN_NAME_PLATE_UNIT_ADDED

Payload, after the event's name:
- `unitToken`: UnitTokenType

### FORBIDDEN_NAME_PLATE_UNIT_REMOVED

Payload, after the event's name:
- `unitToken`: UnitTokenType

### NAME_PLATE_CREATED

Payload, after the event's name:
- `namePlateFrame`: NamePlateFrame

### NAME_PLATE_UNIT_ADDED

Payload, after the event's name:
- `unitToken`: UnitTokenType

### NAME_PLATE_UNIT_BEHIND_CAMERA_CHANGED

Payload, after the event's name:
- `unitTarget`: UnitTokenVariant
- `isBehindCamera`: bool

### NAME_PLATE_UNIT_REMOVED

Payload, after the event's name:
- `unitToken`: UnitTokenType

---
Make an addon with your AI: tell it "Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it."
