Skip to content

Commit 6223bb3

Browse files
committed
DIA-3350 Fix SampleScene
1 parent b43a228 commit 6223bb3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Assets/ExampleApp/Scenes/SourcepointSampleScene.unity

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ RectTransform:
431431
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
432432
m_AnchorMin: {x: 0.5, y: 0.5}
433433
m_AnchorMax: {x: 0.5, y: 0.5}
434-
m_AnchoredPosition: {x: 0, y: -945.9999}
434+
m_AnchoredPosition: {x: 0, y: -1145.9999}
435435
m_SizeDelta: {x: 720, y: 180}
436436
m_Pivot: {x: 0.5, y: 0.5}
437437
--- !u!114 &448136250
@@ -577,7 +577,7 @@ RectTransform:
577577
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
578578
m_AnchorMin: {x: 0.5, y: 0.5}
579579
m_AnchorMax: {x: 0.5, y: 0.5}
580-
m_AnchoredPosition: {x: 676, y: 79.456}
580+
m_AnchoredPosition: {x: 0, y: -945}
581581
m_SizeDelta: {x: 720, y: 180}
582582
m_Pivot: {x: 0.5, y: 0.5}
583583
--- !u!114 &506840119
@@ -1613,7 +1613,7 @@ MonoBehaviour:
16131613
m_HorizontalOverflow: 0
16141614
m_VerticalOverflow: 0
16151615
m_LineSpacing: 1
1616-
m_Text: Clear Data
1616+
m_Text: Delete custom consent
16171617
--- !u!222 &1196510775
16181618
CanvasRenderer:
16191619
m_ObjectHideFlags: 0

Assets/ExampleApp/Scripts/PrivacySettings.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ public void OnClearCustomConsentDataPress()
129129
legIntCategories: this.legIntCategories,
130130
onSuccessDelegate: SuccessDelegate
131131
);
132-
storedConsentString = null;
133132
updateUI();
134133
}
135134

@@ -142,7 +141,8 @@ public void OnLoadMessagePress()
142141

143142
public void OnConsentReady(SpConsents consents)
144143
{
145-
storedConsentString = consents.gdpr.consents.euconsent;
144+
storedConsentString = consents.gdpr.consents.euconsent ?? "--";
145+
CmpDebugUtil.Log(consents.gdpr.consents.ToFullString());
146146
updateUI();
147147
}
148148

@@ -151,8 +151,8 @@ private void updateUI()
151151
if (storedConsentString != null)
152152
{
153153
loadMessageButton.interactable = false;
154-
gdprPrivacySettingsButton.interactable = true;
155-
ccpaPrivacySettingsButton.interactable = true;
154+
gdprPrivacySettingsButton.interactable = useGDPR;
155+
ccpaPrivacySettingsButton.interactable = useCCPA;
156156
customConsentButton.interactable = true;
157157
clearDataButton.interactable = true;
158158
consentValueText.text = storedConsentString;

0 commit comments

Comments
 (0)