protected override void OnInspectorGUI(UnityEngine.UI.Windows.Plugins.Ads.AdsSettings settings, AdsServiceItem item, System.Action onReset, GUISkin skin)
        {
            var found = false;

                        #if UNITY_ADS
            found = true;
                        #endif

            if (found == false)
            {
                UnityEditor.EditorGUILayout.HelpBox("To enable Unity Ads open `Window/Unity Services` window, login there and turn on `Ads`.", UnityEditor.MessageType.Warning);
            }
            else
            {
                UnityEditor.EditorGUILayout.HelpBox("Unity Ads is enabled.", UnityEditor.MessageType.Info);

                item.iosKey     = UnityEditor.EditorGUILayout.TextField("GameID (iOS): ", item.iosKey);
                item.androidKey = UnityEditor.EditorGUILayout.TextField("GameID (Android): ", item.androidKey);
                item.testMode   = UnityEditor.EditorGUILayout.Toggle("Test mode: ", item.testMode);
            }
        }
Example #2
0
        protected override void OnInspectorGUI(UnityEngine.UI.Windows.Plugins.Ads.AdsSettings settings, AdsServiceItem item, System.Action onReset, GUISkin skin)
        {
            var found = false;

                        #if CHARTBOOST_API
            found = true;
                        #endif

            if (found == false)
            {
                UnityEditor.EditorGUILayout.HelpBox("To enable Chartboost download sdk from `http://answers.chartboost.com/en-us/articles/download` and add `CHARTBOOST_API` define into ProjectSettings.", UnityEditor.MessageType.Warning);
            }
            else
            {
                UnityEditor.EditorGUILayout.HelpBox("Chartboost is enabled.", UnityEditor.MessageType.Info);

                item.iosKey     = UnityEditor.EditorGUILayout.TextField("Id (iOS): ", this.iosId);
                item.iosKey     = UnityEditor.EditorGUILayout.TextField("Signature (iOS): ", this.iosSignature);
                item.androidKey = UnityEditor.EditorGUILayout.TextField("Id (Android): ", this.androidId);
                item.androidKey = UnityEditor.EditorGUILayout.TextField("Signature (Android): ", this.androidSignature);
                item.testMode   = UnityEditor.EditorGUILayout.Toggle("Test mode: ", item.testMode);
            }
        }