Legacy Documentation: Version 2017.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

RemoteSettings.GetFloat

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

Description

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

If it doesn't exist, it will return defaultValue. If you don't provide a default value, it will return 0.0.

using UnityEngine;
using System.Collections;

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

Did you find this page useful? Please give it a rating: