> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# chat_user::local function - overloads

> chat_user::local function - overloads

# chat\_user::local function - overloads

如果用户是本地用户，则返回指向与此用户关联的 [chat\_user\_local](/reference/chat/gamechat2/classes/chat_user/chat_user_local/chat_user_local) 对象的指针。

<a id="overloadsSection" />

## 重载列表

| 名称                                                                                                          | 描述                                                                                                                                      |
| ----------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| [chat\_user::local()](/reference/chat/gamechat2/classes/chat_user/methods/chat_user_local_function)         | 如果用户是本地用户，则返回指向与此用户关联的 [chat\_user\_local](/reference/chat/gamechat2/classes/chat_user/chat_user_local/chat_user_local) 对象的指针。          |
| [chat\_user::local const()](/reference/chat/gamechat2/classes/chat_user/methods/chat_user_local_function_2) | 如果用户是本地用户，则返回指向与此用户关联的 [chat\_user\_local](/reference/chat/gamechat2/classes/chat_user/chat_user_local/chat_user_local) 对象的 `const` 指针。 |

<a id="seealsoSection" />

## 另请参阅

[Game Chat 2 简介](/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro)\
[chat\_user](/reference/chat/gamechat2/classes/chat_user/chat_user)


## Related topics

- [chat_user::local function](/zh-CN/reference/chat/gamechat2/classes/chat_user/methods/chat_user_local_function.md)
- [chat_user::local](/zh-CN/reference/chat/gamechat2/classes/chat_user/methods/chat_user_local_function_2.md)
- [chat_user_local::remote_user_muted](/zh-CN/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_remote_user_muted.md)
- [chat_user_local::microphone_muted](/zh-CN/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_microphone_muted.md)
- [chat_user_local::send_chat_text](/zh-CN/reference/chat/gamechat2/classes/chat_user/chat_user_local/methods/chat_user_local_send_chat_text.md)
