From 3fa4d233b3e44d113427dcc1d24546c16e165299 Mon Sep 17 00:00:00 2001 From: Eschenko_D Date: Wed, 10 Feb 2021 14:01:52 +0200 Subject: [PATCH] Release 1.1.3 --- CHANGELOG.md | 4 ++++ Editor/ConsentRequestParametersEditor.cs | 10 ++++++---- README.md | 2 +- Runtime/UserConsent.cs | 2 +- package.json | 2 +- 5 files changed, 13 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 92cd568..2f748ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Clever Ads Solutions Unity Plugin Change Log +## [1.1.3] - 2021-02-10 +### Bug Fixes +- Ability to drag the UserConsentUI prefab to field of consent request parameters. + ## [1.1.2] - 2021-02-09 ### Changes - Years text colors, on Audience Definition form, will be saved and changed to the values that are defined in the prefab `AudienceDefinition/Years/[0..4]/Text.color`. diff --git a/Editor/ConsentRequestParametersEditor.cs b/Editor/ConsentRequestParametersEditor.cs index f3d3202..ce139b0 100644 --- a/Editor/ConsentRequestParametersEditor.cs +++ b/Editor/ConsentRequestParametersEditor.cs @@ -152,7 +152,8 @@ public override void OnInspectorGUI() CAS.UEditor.HelpStyles.BeginBoxScope(); EditorGUILayout.PropertyField( withDeclineOptionProp ); DrawPrefabSelector( "Consent UI Prefab", - uiPrefabProp, templateUIPrefabName, customUIPrefabName ); + uiPrefabProp, templateUIPrefabName, customUIPrefabName, + typeof( UserConsentUI ) ); currentListProp = consentMessageProp; consentMessageList.DoLayoutList(); @@ -163,7 +164,8 @@ public override void OnInspectorGUI() bool disableTogglePrefab = !withMediationSettingsProp.boolValue; EditorGUI.BeginDisabledGroup( disableTogglePrefab ); DrawPrefabSelector( "Toggle UI Prefab", - settingsTogglePrefabProp, templateSettingsPrefabName, customSettingsPrefabName ); + settingsTogglePrefabProp, templateSettingsPrefabName, customSettingsPrefabName, + typeof( MediationPolicyUI ) ); currentListProp = settingsMessageProp; settingsMessageList.DoLayoutList(); EditorGUI.EndDisabledGroup(); @@ -242,7 +244,7 @@ private void DrawSettingsMessageHeader( Rect rect ) EditorGUI.LabelField( rect, "Mediation Settings Message" ); } - private void DrawPrefabSelector( string title, SerializedProperty prop, string templateName, string customName ) + private void DrawPrefabSelector( string title, SerializedProperty prop, string templateName, string customName, Type objType ) { EditorGUILayout.BeginHorizontal(); EditorGUILayout.LabelField( title ); @@ -258,7 +260,7 @@ private void DrawPrefabSelector( string title, SerializedProperty prop, string t } EditorGUILayout.EndHorizontal(); prop.objectReferenceValue = - EditorGUILayout.ObjectField( prop.objectReferenceValue, typeof( MediationPolicyUI ), false ); + EditorGUILayout.ObjectField( prop.objectReferenceValue, objType, false ); EditorGUILayout.Space(); } diff --git a/README.md b/README.md index 89c5b81..da02246 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Modify `Packages/manifest.json` to the following form: } ], "dependencies": { -"com.cleversolutions.ads.unity": "https://github.com/cleveradssolutions/CAS-Unity-Consent.git#1.1.2" +"com.cleversolutions.ads.unity": "https://github.com/cleveradssolutions/CAS-Unity-Consent.git#1.1.3" } } ``` diff --git a/Runtime/UserConsent.cs b/Runtime/UserConsent.cs index 51e3b20..8a52783 100644 --- a/Runtime/UserConsent.cs +++ b/Runtime/UserConsent.cs @@ -5,7 +5,7 @@ namespace CAS.UserConsent { public static class UserConsent { - public const string version = "1.1.2"; + public const string version = "1.1.3"; /// /// User latest consent status values. diff --git a/package.json b/package.json index d2835fb..2b9d6ff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.cleversolutions.ads.consent.unity", - "version": "1.1.2", + "version": "1.1.3", "displayName": "CleverAdsSolutions Consent", "description": "Clever Ads Solutions User consent Unity plugin.", "unity": "2017.4",