> For the complete documentation index, see [llms.txt](https://vc-docs.gitbook.io/engine/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vc-docs.gitbook.io/engine/home/doxygen_synced/files/_player_8cs.md).

# Source/Player.cs

## Classes

|       | Name                                                                                                                                                                                                                                                                                                                                                                                              |
| ----- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| class | <p><a href="https://git.unimetaverse.net/vc-core-engine/doxygen/-/blob/main/Files/Classes/class_player.md"><strong>Player</strong></a><br>Legacy player API class retained for backward compatibility. Most members of this class are deprecated and will be removed in a future version. Use <a href="/pages/hq05IA52eSPt7gnGuMt2">PlayerInput</a> for all new player control functionality.</p> |

## Source code

```csharp

public class Player
{
  public static void DisableControl()
  {
    RuntimeConsoleLogger.LogError("Function has been deprecated and will be removed in the future, Please use PlayerInput.DisablePlayer()");
  }

  public static void EnableControl()
  {
    RuntimeConsoleLogger.LogError("Function has been deprecated and will be removed in the future, Please use PlayerInput.EnablePlayer()");
  }

  public static void SetMoveSpeed(float ms)
  {
    RuntimeConsoleLogger.LogError("Function has been deprecated and will be removed in the future.");
  }

  public static void SetSensitivity(float s)
  {
    RuntimeConsoleLogger.LogError("Function has been deprecated and will be removed in the future.");
  }

  public static void SetFlatY(bool b)
  {
    RuntimeConsoleLogger.LogError("Function has been deprecated and will be removed in the future.");
  }

  public static void DisableServerEscape()
  {
    RuntimeConsoleLogger.LogError("Function has been deprecated and will be removed in the future.");
  }

  public static void EnableServerEscape()
  {
    RuntimeConsoleLogger.LogError("Function has been deprecated and will be removed in the future.");
  }

  public static string GetUserID()
  {
    return CurrentUser.GetInstance().GetUserID();
  }

  public static GameObject GetPlayer()
  {
    RuntimeConsoleLogger.LogError("Function has been deprecated and will be removed in the future. Please use PlayerInput.player");
    return null;
  }
}
```

***

Updated on 2026-06-23 at 10:43:25 +0800
