# GetPlatformData

> Get platform specific data.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

## GetPlatformData(BuildTarget, string)

Get platform specific data.

```csharp
public string GetPlatformData(BuildTarget platform, string key)
```

### Parameters

**** (\[BuildTarget]\(/engine/6000.5/script-reference/unityeditor/buildtarget)): Target platform.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Key value for data.

### Returns

| Type                                                           | Description |
| -------------------------------------------------------------- | ----------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) |             |

## GetPlatformData(string, string)

Get platform specific data.

```csharp
public string GetPlatformData(string platformName, string key)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Key value for data.

### Returns

| Type                                                           | Description |
| -------------------------------------------------------------- | ----------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) |             |
