Upgrade to Pro — share decks privately, control downloads, hide ads and more …

使ってみよう! Unity RemoteSettings/Let's use Unity Re...

使ってみよう! Unity RemoteSettings/Let's use Unity RemoteSettings

2019/05/18 (Sat) に開催された「Unity の集い in 大阪」にて登壇した資料になります。

Appendix の各 URL は以下の通りです。

* RemoteSettings Manual

* English: https://docs.unity3d.com/Manual/UnityAnalyticsRemoteSettings.html
* Japanese: https://docs.unity3d.com/ja/current/Manual/UnityAnalyticsRemoteSettings.html
* Unity Services: https://developer.cloud.unity3d.com
* Unity Learning Materials: https://learning.unity3d.jp
* デモプロジェクト: https://github.com/monry/RemoteSettingsSample
* キッズスター学習帳: https://kidsstar-tbf.booth.pm/

Tetsuya Mori

May 18, 2019
Tweet

More Decks by Tetsuya Mori

Other Decks in Programming

Transcript

  1.   ֓ཁ 3FNPUF4FUUJOHTͱ͸ʁ J04 W J04 W J04 W

    "OESPJE W "OESPJE W      ʮ޿ࠂଧͬͨ͠ɺഉग़཰্͛ͯ
 Ϣʔβఆணͤ͞Αɻʯ
  2.   ࣮૷ίʔυྫ 3FNPUF4FUUJOHTͷ࢖͍ํ using UnityEngine; using UnityEngine.UI; [RequireComponent(typeof(Text))] public

    class EmissionRatio : MonoBehaviour { private void Start() { GetComponent<Text>().text = RemoteSettings .GetFloat("EmissionRatio") .ToString(); } } 3FNPUF4FUUJOHTઃఆ஋औಘ GetBool() GetInt() GetFloat() GetString()
 ͳͲ͕ར༻Մ˞GetLong()͸࢖͑ͳ͍ͬΆ͍
  3.   ࣮૷ίʔυྫ 3FNPUF4FUUJOHTͷ࢖͍ํ using UnityEngine; public class GameController :

    MonoBehaviour { private void Start() { RemoteSettings.Completed += (wasUpdatedFromServer, settingsChanged, serverResponse) => { Debug.Log("更新されたよ!"); }; // UniRx.Observable.Interval() とかでポーリングしても良いかも? RemoteSettings.ForceUpdate(); } } 3FNPUF4FUUJOHTઃఆ஋ߋ৽