文档

Unity Engine

Unity Engine

SetPlatformData

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

Definition

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

SetPlatformData(BuildTarget, string, string)

Stores platform-specific data under a key for a build target.
public void SetPlatformData(BuildTarget platform, string key, string value)

Parameters

platform

The target platform.

The key to store the data under.

value

The data to store.

Remarks

Use PluginImporter.GetPlatformData to read the data.

SetPlatformData(string, string, string)

Stores platform-specific data under a key for a platform, identified by name.
public void SetPlatformData(string platformName, string key, string value)

Parameters

platformName

The name of the target platform.

The key to store the data under.

value

The data to store.

Remarks

Use PluginImporter.GetPlatformData to read the data.