文档

Unity Engine

Unity Engine

GetPlatformData

Gets the platform-specific data stored under a key for a build target.
阅读时间1 分钟最后更新于 21 天前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

GetPlatformData(BuildTarget, string)

Gets the platform-specific data stored under a key for a build target.
public string GetPlatformData(BuildTarget platform, string key)

Parameters

platform

The target platform.

The key that the data is stored under.

Returns

Type

Description

stringThe platform-specific data stored under the key.

Remarks

Use PluginImporter.SetPlatformData to store the data.

GetPlatformData(string, string)

Gets the platform-specific data stored under a key for a platform, identified by name.
public string GetPlatformData(string platformName, string key)

Parameters

platformName

The name of the target platform.

The key that the data is stored under.

Returns

Type

Description

stringThe platform-specific data stored under the key.

Remarks

Use PluginImporter.SetPlatformData to store the data.