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

Script language

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

RemoteSettings.GetBool

public static bool GetBool(string key, bool defaultValue = false);

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 false.

using UnityEngine;
using System.Collections;

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

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