# platform

> Returns the platform the game is running on (Read Only).

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.5/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static RuntimePlatform platform { get; }
```

### Remarks

Use this property if you need to do some platform dependent work.

```csharp
using UnityEngine;

public class ExampleClass : MonoBehaviour
{
    void Start()
    {
        if (Application.platform == RuntimePlatform.WindowsPlayer)
            Debug.Log("Do something special here");
    }
}
```

Additional Resources: [RuntimePlatform](/engine/6000.5/script-reference/unityengine/runtimeplatform.md) enum, [SystemInfo](/engine/6000.5/script-reference/unityengine/systeminfo.md) class.
