Version: 2017.2
public static int GetInt (string key, int defaultValue= 0);

描述

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

如果不存在,则返回 /defaultValue/。如果不提供默认值,将返回 0。

using UnityEngine;
using System.Collections;

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