Version: 2017.2
public static float GetFloat (string key, float defaultValue= 0.0F);

描述

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

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

using UnityEngine;
using System.Collections;

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