Version: 2017.3
public static string GetString (string key, string defaultValue= "");

描述

Returns the value corresponding to key in the remote settings if it exists.

如果不存在,则返回 /defaultValue/。如果不提供默认值,将返回“”(空字符串)。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Example() { print(RemoteSettings.GetString("defaultPlayerName")); } }