diff --git a/Assets/Samples/Stream Video & Audio Chat SDK/0.7.0/Video & Audio Chat Example Project/MainScene.unity b/Assets/Samples/Stream Video & Audio Chat SDK/0.7.0/Video & Audio Chat Example Project/MainScene.unity index 40c2ccac..b97b5c86 100644 --- a/Assets/Samples/Stream Video & Audio Chat SDK/0.7.0/Video & Audio Chat Example Project/MainScene.unity +++ b/Assets/Samples/Stream Video & Audio Chat SDK/0.7.0/Video & Audio Chat Example Project/MainScene.unity @@ -658,327 +658,327 @@ PrefabInstance: m_Modifications: - target: {fileID: 1307480118307336659, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118307336659, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118307336659, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 455.16666 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118307336659, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -579.4007 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118404380132, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118404380132, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118404380132, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.x - value: 1040 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118404380132, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.y - value: 60 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118404380132, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 540 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118404380132, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -50 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118481525140, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118481525140, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118481525140, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.x - value: 1040 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118481525140, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.y - value: 100 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118481525140, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 540 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118481525140, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -50 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118501653233, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118501653233, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118501653233, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.x - value: 794 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118501653233, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.y - value: 150 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118501653233, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 397 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118501653233, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -225 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118564499557, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118564499557, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118564499557, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 447 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118564499557, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -75 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118716501319, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118716501319, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118716501319, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.x - value: 1080 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118716501319, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 840 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118716501319, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -70 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118764141224, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118764141224, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118764141224, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.x - value: 445 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118764141224, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.y - value: 100 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118764141224, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 222.5 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118764141224, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -50 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119025417603, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119025417603, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119025417603, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.x - value: 1720 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119025417603, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.y - value: 789.0814 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119025417603, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 860 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119025417603, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -394.5407 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119266673556, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119266673556, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119266673556, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 1315.1667 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119266673556, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -579.4007 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119352681520, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119352681520, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119352681520, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.x - value: 794 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119352681520, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.y - value: 150 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119352681520, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 397 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119352681520, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -75 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119394881323, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119394881323, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119394881323, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.x - value: 1720 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119394881323, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.y - value: 1697.6028 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119394881323, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 960 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119394881323, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -1737.8828 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119478930667, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119478930667, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119478930667, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.x - value: 1720 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119478930667, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.y - value: 1158.8014 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119478930667, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 960 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119478930667, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -3166.0847 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119576803817, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119576803817, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119576803817, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 346.6667 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119576803817, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -210 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119777376246, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119777376246, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119777376246, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.x - value: 445 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119777376246, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.y - value: 100 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119777376246, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 817.5 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119777376246, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -50 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119880765030, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119880765030, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119880765030, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.x - value: 1680 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119880765030, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.y - value: 1697.6028 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119880765030, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 860 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119880765030, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -848.8014 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119889464040, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_Name @@ -986,7 +986,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 1307480119889464040, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_IsActive - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 1307480119889464043, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_Pivot.x @@ -1074,95 +1074,95 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 1307480120011113484, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480120011113484, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480120011113484, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 447 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480120011113484, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -75 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480120250218088, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480120250218088, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480120250218088, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.x - value: 1720 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480120250218088, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.y - value: 789.0814 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480120250218088, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 960 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480120250218088, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -494.5407 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480120277448089, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480120277448089, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480120277448089, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.x - value: 1080 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480120277448089, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 840 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480120277448089, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -908.8014 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4532321899158688923, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4532321899158688923, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4532321899158688923, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 40 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4532321899158688923, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -75 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6296358217508093938, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6296358217508093938, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6296358217508093938, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 40 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6296358217508093938, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -75 + value: 0 objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} @@ -1173,6 +1173,94 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 996985032} m_Modifications: + - target: {fileID: 159023720803148699, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 159023720803148699, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 159023720803148699, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: 1920 + objectReference: {fileID: 0} + - target: {fileID: 159023720803148699, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.y + value: 112.145 + objectReference: {fileID: 0} + - target: {fileID: 159023720803148699, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 960 + objectReference: {fileID: 0} + - target: {fileID: 159023720803148699, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -343.9275 + objectReference: {fileID: 0} + - target: {fileID: 590200681256611023, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 590200681256611023, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 590200681256611023, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 560 + objectReference: {fileID: 0} + - target: {fileID: 590200681256611023, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -128.92749 + objectReference: {fileID: 0} + - target: {fileID: 934668286869665102, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 934668286869665102, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 934668286869665102, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: 900 + objectReference: {fileID: 0} + - target: {fileID: 934668286869665102, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.y + value: 257.85498 + objectReference: {fileID: 0} + - target: {fileID: 934668286869665102, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 1420 + objectReference: {fileID: 0} + - target: {fileID: 934668286869665102, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -138.92749 + objectReference: {fileID: 0} + - target: {fileID: 1270192326685479506, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1270192326685479506, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1270192326685479506, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: 900 + objectReference: {fileID: 0} + - target: {fileID: 1270192326685479506, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.y + value: 257.85498 + objectReference: {fileID: 0} + - target: {fileID: 1270192326685479506, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 500 + objectReference: {fileID: 0} + - target: {fileID: 1270192326685479506, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -138.92749 + objectReference: {fileID: 0} - target: {fileID: 1286423087709293181, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} propertyPath: m_AnchorMax.y value: 0 @@ -1645,6 +1733,70 @@ PrefabInstance: propertyPath: m_Name value: PortraitMode objectReference: {fileID: 0} + - target: {fileID: 1528889957401164501, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_IsActive + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1953595718093418615, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1953595718093418615, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1953595718093418615, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: 1920 + objectReference: {fileID: 0} + - target: {fileID: 1953595718093418615, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 960 + objectReference: {fileID: 0} + - target: {fileID: 1953595718093418615, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -1180 + objectReference: {fileID: 0} + - target: {fileID: 3574753776192281768, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3574753776192281768, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3574753776192281768, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: 950 + objectReference: {fileID: 0} + - target: {fileID: 3574753776192281768, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.y + value: 950 + objectReference: {fileID: 0} + - target: {fileID: 3574753776192281768, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 960 + objectReference: {fileID: 0} + - target: {fileID: 3574753776192281768, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -475 + objectReference: {fileID: 0} + - target: {fileID: 3867892941296134446, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3867892941296134446, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3867892941296134446, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 110 + objectReference: {fileID: 0} + - target: {fileID: 3867892941296134446, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -128.92749 + objectReference: {fileID: 0} - target: {fileID: 4402649097945682381, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} propertyPath: m_AnchorMax.y value: 0 @@ -1661,6 +1813,206 @@ PrefabInstance: propertyPath: m_AnchoredPosition.y value: 0 objectReference: {fileID: 0} + - target: {fileID: 4508466005029774023, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4508466005029774023, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4508466005029774023, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: 746.6666 + objectReference: {fileID: 0} + - target: {fileID: 4508466005029774023, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.y + value: 82.145 + objectReference: {fileID: 0} + - target: {fileID: 4508466005029774023, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 373.3333 + objectReference: {fileID: 0} + - target: {fileID: 4508466005029774023, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -41.0725 + objectReference: {fileID: 0} + - target: {fileID: 4877560597037371998, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4877560597037371998, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4877560597037371998, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: 516.6666 + objectReference: {fileID: 0} + - target: {fileID: 4877560597037371998, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.y + value: 82.145 + objectReference: {fileID: 0} + - target: {fileID: 4877560597037371998, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 308.3333 + objectReference: {fileID: 0} + - target: {fileID: 4877560597037371998, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -51.0725 + objectReference: {fileID: 0} + - target: {fileID: 4970172673910910611, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4970172673910910611, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4970172673910910611, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 560 + objectReference: {fileID: 0} + - target: {fileID: 4970172673910910611, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -128.92749 + objectReference: {fileID: 0} + - target: {fileID: 5014123076969933146, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5014123076969933146, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5014123076969933146, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: 516.6666 + objectReference: {fileID: 0} + - target: {fileID: 5014123076969933146, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.y + value: 82.145 + objectReference: {fileID: 0} + - target: {fileID: 5014123076969933146, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 844.99994 + objectReference: {fileID: 0} + - target: {fileID: 5014123076969933146, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -51.0725 + objectReference: {fileID: 0} + - target: {fileID: 5537544254641949553, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.x + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5537544254641949553, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5537544254876115149, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5537544254876115149, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5537544254876115149, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: 1920 + objectReference: {fileID: 0} + - target: {fileID: 5537544254876115149, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 960 + objectReference: {fileID: 0} + - target: {fileID: 5537544254876115149, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -490 + objectReference: {fileID: 0} + - target: {fileID: 5537544254902102463, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5537544254902102463, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5537544254902102463, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: 1920 + objectReference: {fileID: 0} + - target: {fileID: 5537544254902102463, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 960 + objectReference: {fileID: 0} + - target: {fileID: 5537544254902102463, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -1475 + objectReference: {fileID: 0} + - target: {fileID: 5537544254942632730, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5537544254942632730, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.y + value: -17 + objectReference: {fileID: 0} + - target: {fileID: 5537544255139409306, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.x + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5537544255139409306, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5537544255207549200, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.x + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5537544255207549200, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: -17 + objectReference: {fileID: 0} + - target: {fileID: 5537544255360948360, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5537544255360948360, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5537544255360948360, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: 1920 + objectReference: {fileID: 0} + - target: {fileID: 5537544255360948360, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 960 + objectReference: {fileID: 0} + - target: {fileID: 5537544255973931161, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.x + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5537544255973931161, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5537544255973931161, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: -17 + objectReference: {fileID: 0} + - target: {fileID: 5537544255973931161, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.y + value: -17 + objectReference: {fileID: 0} + - target: {fileID: 5537544256336990598, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: -1903 + objectReference: {fileID: 0} + - target: {fileID: 5537544256336990598, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.y + value: 900 + objectReference: {fileID: 0} - target: {fileID: 6097443669449816740, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} propertyPath: m_AnchorMax.y value: 0 @@ -1677,5 +2029,69 @@ PrefabInstance: propertyPath: m_AnchoredPosition.y value: 0 objectReference: {fileID: 0} + - target: {fileID: 7454539576598611538, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7454539576598611538, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7454539576598611538, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: 746.6666 + objectReference: {fileID: 0} + - target: {fileID: 7454539576598611538, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.y + value: 82.145 + objectReference: {fileID: 0} + - target: {fileID: 7454539576598611538, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 1496.6665 + objectReference: {fileID: 0} + - target: {fileID: 7454539576598611538, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -51.0725 + objectReference: {fileID: 0} + - target: {fileID: 8344061337896375863, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8344061337896375863, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8344061337896375863, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: 1920 + objectReference: {fileID: 0} + - target: {fileID: 8344061337896375863, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.y + value: 287.85498 + objectReference: {fileID: 0} + - target: {fileID: 8344061337896375863, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 960 + objectReference: {fileID: 0} + - target: {fileID: 8344061337896375863, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -143.92749 + objectReference: {fileID: 0} + - target: {fileID: 8756651770337650358, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8756651770337650358, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8756651770337650358, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 110 + objectReference: {fileID: 0} + - target: {fileID: 8756651770337650358, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -128.92749 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} diff --git a/Assets/Samples/Stream Video & Audio Chat SDK/0.7.0/Video & Audio Chat Example Project/Scripts/UI/PermissionsManager.cs b/Assets/Samples/Stream Video & Audio Chat SDK/0.7.0/Video & Audio Chat Example Project/Scripts/UI/PermissionsManager.cs new file mode 100644 index 00000000..be10debd --- /dev/null +++ b/Assets/Samples/Stream Video & Audio Chat SDK/0.7.0/Video & Audio Chat Example Project/Scripts/UI/PermissionsManager.cs @@ -0,0 +1,127 @@ +using System; +using UnityEngine; +#if UNITY_ANDROID +using UnityEngine.Android; +#endif +#if UNITY_IOS +using System.Collections; +#endif + +namespace StreamVideo.ExampleProject.UI +{ + public class PermissionsManager + { + public enum PermissionType + { + Camera, + Microphone + } + + public PermissionsManager(MonoBehaviour coroutineRunner) + { + _coroutineRunner = coroutineRunner; + } + + public bool HasPermission(PermissionType permissionType) + { +#if UNITY_STANDALONE + return true; +#elif UNITY_ANDROID + var androidPermission = PermissionTypeToAndroidPermission(permissionType); + return Permission.HasUserAuthorizedPermission(androidPermission); +#elif UNITY_IOS + var iosPermission = PermissionTypeToIOSPermission(permissionType); + return Application.HasUserAuthorization(iosPermission); +#else + Debug.LogWarning($"Handling permissions not implemented for platform: {Application.platform}. Requested {permissionType}. Assuming permission is granted."); + return true; +#endif + } + + + public void RequestPermission(PermissionType permissionType, Action onGranted = null, Action onDenied = null) + { +#if UNITY_ANDROID + RequestAndroidPermission(permissionType, onGranted, onDenied); +#elif UNITY_IOS + _coroutineRunner.StartCoroutine(RequestIOSPermissionCoroutine(permissionType, onGranted, onDenied)); +#else + Debug.LogError($"Handling permissions not implemented for platform: " + Application.platform); +#endif + } + + private readonly MonoBehaviour _coroutineRunner; + +#if UNITY_ANDROID + private void RequestAndroidPermission(PermissionType permissionType, Action onGranted = null, + Action onDenied = null) + { + var androidPermission = PermissionTypeToAndroidPermission(permissionType); + var callbacks = new PermissionCallbacks(); + Permission.RequestUserPermission(androidPermission, callbacks); + + callbacks.PermissionGranted += permissionName => + { + if (androidPermission == permissionName) + { + onGranted?.Invoke(); + } + }; + callbacks.PermissionDenied += permissionName => + { + if (androidPermission == permissionName) + { + onDenied?.Invoke(); + } + }; + callbacks.PermissionDeniedAndDontAskAgain += permissionName => + { + if (androidPermission == permissionName) + { + onDenied?.Invoke(); + } + }; + } + + private string PermissionTypeToAndroidPermission(PermissionType type) + { + switch (type) + { + case PermissionType.Camera: return Permission.Camera; + case PermissionType.Microphone: return Permission.Microphone; + default: + throw new ArgumentOutOfRangeException(nameof(type), type, null); + } + } +#endif + +#if UNITY_IOS + private IEnumerator RequestIOSPermissionCoroutine(PermissionType permissionType, Action onGranted = null, + Action onDenied = null) + { + var iosPermission = PermissionTypeToIOSPermission(permissionType); + yield return Application.RequestUserAuthorization(iosPermission); + + if (Application.HasUserAuthorization(iosPermission)) + { + onGranted?.Invoke(); + } + else + { + onDenied?.Invoke(); + } + } + + UserAuthorization PermissionTypeToIOSPermission(PermissionType type) + { + switch (type) + { + case PermissionType.Camera: return UserAuthorization.WebCam; + case PermissionType.Microphone: return UserAuthorization.Microphone; + default: + throw new ArgumentOutOfRangeException(nameof(type), type, null); + } + } +#endif + } +} \ No newline at end of file diff --git a/Assets/Samples/Stream Video & Audio Chat SDK/0.7.0/Video & Audio Chat Example Project/Scripts/UI/PermissionsManager.cs.meta b/Assets/Samples/Stream Video & Audio Chat SDK/0.7.0/Video & Audio Chat Example Project/Scripts/UI/PermissionsManager.cs.meta new file mode 100644 index 00000000..76f9db6e --- /dev/null +++ b/Assets/Samples/Stream Video & Audio Chat SDK/0.7.0/Video & Audio Chat Example Project/Scripts/UI/PermissionsManager.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 6146832fc2b94b3dbabe2ae3d1509721 +timeCreated: 1732010426 \ No newline at end of file diff --git a/Assets/Samples/Stream Video & Audio Chat SDK/0.7.0/Video & Audio Chat Example Project/Scripts/UI/UIManager.cs b/Assets/Samples/Stream Video & Audio Chat SDK/0.7.0/Video & Audio Chat Example Project/Scripts/UI/UIManager.cs index 9efff2ff..bec28d21 100644 --- a/Assets/Samples/Stream Video & Audio Chat SDK/0.7.0/Video & Audio Chat Example Project/Scripts/UI/UIManager.cs +++ b/Assets/Samples/Stream Video & Audio Chat SDK/0.7.0/Video & Audio Chat Example Project/Scripts/UI/UIManager.cs @@ -6,9 +6,6 @@ using StreamVideo.Core.StatefulModels; using StreamVideo.Libs.Utils; using UnityEngine; -#if UNITY_ANDROID -using UnityEngine.Android; -#endif namespace StreamVideo.ExampleProject.UI { @@ -19,76 +16,10 @@ public class UIManager : MonoBehaviour public VideoResolution SenderVideoResolution => new VideoResolution(_senderVideoWidth, _senderVideoHeight); public int SenderVideoFps => _senderVideoFps; - public void RequestCameraPermissions(Action onGranted = null, Action onDenied = null) - { -#if UNITY_ANDROID - var callbacks = new PermissionCallbacks(); - Permission.RequestUserPermission(Permission.Camera, callbacks); - - callbacks.PermissionGranted += _ => { onGranted?.Invoke(); }; - callbacks.PermissionDenied += permissionName => - { - onDenied?.Invoke(); - Debug.LogError($"{permissionName} permission was not granted. Video capturing will not work."); - }; - callbacks.PermissionDeniedAndDontAskAgain += (permissionName) => - { - onDenied?.Invoke(); - Debug.LogError($"{permissionName} permission was not granted. Video capturing will not work."); - }; -#elif UNITY_IOS - Debug.LogError($"Handling permissions not implemented for platform: " + Application.platform); -#endif - } - - public bool HasUserAuthorizedCameraPermission() - { -#if UNITY_STANDALONE - return true; //StreamTodo: check if this is true for all platforms -#elif UNITY_ANDROID - return Permission.HasUserAuthorizedPermission(Permission.Camera); -#else - Debug.LogError($"Handling permissions not implemented for platform: " + Application.platform); -#endif - } - - public void RequestMicrophonePermissions(Action onGranted = null, Action onDenied = null) - { -#if UNITY_ANDROID - var callbacks = new PermissionCallbacks(); - - callbacks.PermissionGranted += _ => { onGranted?.Invoke(); }; - callbacks.PermissionDenied += permissionName => - { - onDenied?.Invoke(); - Debug.LogError($"{permissionName} permission was not granted. Video capturing will not work."); - }; - callbacks.PermissionDeniedAndDontAskAgain += (permissionName) => - { - onDenied?.Invoke(); - Debug.LogError($"{permissionName} permission was not granted. Video capturing will not work."); - }; - - Permission.RequestUserPermission(Permission.Microphone, callbacks); - -#else - Debug.LogError($"Handling permissions not implemented for platform: " + Application.platform); -#endif - } - - public bool HasUserAuthorizedMicrophonePermission() - { -#if UNITY_STANDALONE - return true; //StreamTodo: check if this is true for all platforms -#elif UNITY_ANDROID - return Permission.HasUserAuthorizedPermission(Permission.Microphone); -#else - Debug.LogError($"Handling permissions not implemented for platform: " + Application.platform); -#endif - } - protected void Awake() { + _permissionsManager = new PermissionsManager(this); + _videoManager.Init(); _videoManager.CallStarted += OnCallStarted; @@ -100,9 +31,10 @@ protected void Awake() _portraitModeUIScreensSet.Init(_videoManager, uiManager: this); _landscapeModeUIScreensSet.Init(_videoManager, uiManager: this); - if (!HasUserAuthorizedCameraPermission()) + if (!_permissionsManager.HasPermission(PermissionsManager.PermissionType.Camera)) { - RequestCameraPermissions(onGranted: () => { SelectFirstWorkingCameraOrDefaultAsync().LogIfFailed(); }, + _permissionsManager.RequestPermission(PermissionsManager.PermissionType.Camera, + onGranted: () => { SelectFirstWorkingCameraOrDefaultAsync().LogIfFailed(); }, onDenied: () => Debug.LogError("Camera permission was not granted. Video capturing will not work.")); } @@ -111,9 +43,10 @@ protected void Awake() SelectFirstWorkingCameraOrDefaultAsync().LogIfFailed(); } - if (!HasUserAuthorizedMicrophonePermission()) + if (!_permissionsManager.HasPermission(PermissionsManager.PermissionType.Microphone)) { - RequestMicrophonePermissions(onGranted: SelectFirstMicrophone, + _permissionsManager.RequestPermission(PermissionsManager.PermissionType.Microphone, + onGranted: SelectFirstMicrophone, onDenied: () => Debug.LogError("Microphone permission was not granted. Audio capturing will not work.")); } @@ -151,13 +84,15 @@ protected void OnDestroy() [SerializeField] private UIScreensSet _landscapeModeUIScreensSet; - + [SerializeField] private UIScreensSet _portraitModeUIScreensSet; - + [SerializeField] private bool _forceTestPortraitMode; + private PermissionsManager _permissionsManager; + private void OnCallStarted(IStreamCall call) => ShowCallScreen(call); private void OnCallEnded() => ShowMainScreen(); @@ -242,10 +177,10 @@ private void SelectFirstMicrophone() private UIScreensSet GetCurrentScreenSet() { var isPortraitMode = IsPotraitMode(); - + _portraitModeUIScreensSet.gameObject.SetActive(isPortraitMode); _landscapeModeUIScreensSet.gameObject.SetActive(!isPortraitMode); - + return isPortraitMode ? _portraitModeUIScreensSet : _landscapeModeUIScreensSet; } diff --git a/Packages/StreamVideo/Runtime/Core/DeviceManagers/DeviceManagerBase.cs b/Packages/StreamVideo/Runtime/Core/DeviceManagers/DeviceManagerBase.cs index ee01f04b..0f63e483 100644 --- a/Packages/StreamVideo/Runtime/Core/DeviceManagers/DeviceManagerBase.cs +++ b/Packages/StreamVideo/Runtime/Core/DeviceManagers/DeviceManagerBase.cs @@ -79,6 +79,7 @@ public Task TestDeviceAsync(TDeviceInfo device, float timeout = 1f) return OnTestDeviceAsync(device, (int)(timeout * 1000)); } + // StreamTODO: add filter option. E.g. so we can easily consider only front cameras on ios/android public async Task TryFindFirstWorkingDeviceAsync(float testTimeoutPerDevice = 1f) { foreach (var device in EnumerateDevices()) diff --git a/Packages/StreamVideo/Samples~/VideoChat/MainScene.unity b/Packages/StreamVideo/Samples~/VideoChat/MainScene.unity index 40c2ccac..b97b5c86 100644 --- a/Packages/StreamVideo/Samples~/VideoChat/MainScene.unity +++ b/Packages/StreamVideo/Samples~/VideoChat/MainScene.unity @@ -658,327 +658,327 @@ PrefabInstance: m_Modifications: - target: {fileID: 1307480118307336659, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118307336659, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118307336659, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 455.16666 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118307336659, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -579.4007 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118404380132, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118404380132, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118404380132, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.x - value: 1040 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118404380132, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.y - value: 60 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118404380132, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 540 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118404380132, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -50 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118481525140, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118481525140, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118481525140, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.x - value: 1040 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118481525140, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.y - value: 100 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118481525140, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 540 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118481525140, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -50 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118501653233, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118501653233, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118501653233, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.x - value: 794 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118501653233, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.y - value: 150 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118501653233, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 397 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118501653233, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -225 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118564499557, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118564499557, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118564499557, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 447 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118564499557, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -75 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118716501319, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118716501319, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118716501319, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.x - value: 1080 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118716501319, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 840 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118716501319, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -70 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118764141224, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118764141224, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118764141224, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.x - value: 445 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118764141224, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.y - value: 100 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118764141224, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 222.5 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480118764141224, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -50 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119025417603, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119025417603, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119025417603, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.x - value: 1720 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119025417603, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.y - value: 789.0814 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119025417603, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 860 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119025417603, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -394.5407 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119266673556, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119266673556, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119266673556, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 1315.1667 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119266673556, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -579.4007 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119352681520, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119352681520, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119352681520, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.x - value: 794 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119352681520, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.y - value: 150 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119352681520, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 397 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119352681520, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -75 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119394881323, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119394881323, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119394881323, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.x - value: 1720 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119394881323, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.y - value: 1697.6028 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119394881323, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 960 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119394881323, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -1737.8828 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119478930667, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119478930667, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119478930667, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.x - value: 1720 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119478930667, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.y - value: 1158.8014 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119478930667, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 960 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119478930667, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -3166.0847 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119576803817, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119576803817, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119576803817, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 346.6667 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119576803817, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -210 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119777376246, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119777376246, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119777376246, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.x - value: 445 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119777376246, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.y - value: 100 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119777376246, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 817.5 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119777376246, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -50 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119880765030, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119880765030, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119880765030, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.x - value: 1680 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119880765030, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.y - value: 1697.6028 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119880765030, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 860 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119880765030, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -848.8014 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480119889464040, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_Name @@ -986,7 +986,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 1307480119889464040, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_IsActive - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 1307480119889464043, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_Pivot.x @@ -1074,95 +1074,95 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 1307480120011113484, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480120011113484, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480120011113484, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 447 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480120011113484, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -75 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480120250218088, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480120250218088, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480120250218088, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.x - value: 1720 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480120250218088, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.y - value: 789.0814 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480120250218088, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 960 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480120250218088, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -494.5407 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480120277448089, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480120277448089, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480120277448089, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_SizeDelta.x - value: 1080 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480120277448089, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 840 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1307480120277448089, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -908.8014 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4532321899158688923, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4532321899158688923, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4532321899158688923, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 40 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4532321899158688923, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -75 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6296358217508093938, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6296358217508093938, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6296358217508093938, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.x - value: 40 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6296358217508093938, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} propertyPath: m_AnchoredPosition.y - value: -75 + value: 0 objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 3a2ce51fa14670c45a8e166abb4c525a, type: 3} @@ -1173,6 +1173,94 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 996985032} m_Modifications: + - target: {fileID: 159023720803148699, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 159023720803148699, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 159023720803148699, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: 1920 + objectReference: {fileID: 0} + - target: {fileID: 159023720803148699, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.y + value: 112.145 + objectReference: {fileID: 0} + - target: {fileID: 159023720803148699, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 960 + objectReference: {fileID: 0} + - target: {fileID: 159023720803148699, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -343.9275 + objectReference: {fileID: 0} + - target: {fileID: 590200681256611023, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 590200681256611023, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 590200681256611023, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 560 + objectReference: {fileID: 0} + - target: {fileID: 590200681256611023, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -128.92749 + objectReference: {fileID: 0} + - target: {fileID: 934668286869665102, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 934668286869665102, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 934668286869665102, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: 900 + objectReference: {fileID: 0} + - target: {fileID: 934668286869665102, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.y + value: 257.85498 + objectReference: {fileID: 0} + - target: {fileID: 934668286869665102, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 1420 + objectReference: {fileID: 0} + - target: {fileID: 934668286869665102, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -138.92749 + objectReference: {fileID: 0} + - target: {fileID: 1270192326685479506, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1270192326685479506, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1270192326685479506, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: 900 + objectReference: {fileID: 0} + - target: {fileID: 1270192326685479506, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.y + value: 257.85498 + objectReference: {fileID: 0} + - target: {fileID: 1270192326685479506, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 500 + objectReference: {fileID: 0} + - target: {fileID: 1270192326685479506, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -138.92749 + objectReference: {fileID: 0} - target: {fileID: 1286423087709293181, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} propertyPath: m_AnchorMax.y value: 0 @@ -1645,6 +1733,70 @@ PrefabInstance: propertyPath: m_Name value: PortraitMode objectReference: {fileID: 0} + - target: {fileID: 1528889957401164501, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_IsActive + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1953595718093418615, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1953595718093418615, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1953595718093418615, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: 1920 + objectReference: {fileID: 0} + - target: {fileID: 1953595718093418615, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 960 + objectReference: {fileID: 0} + - target: {fileID: 1953595718093418615, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -1180 + objectReference: {fileID: 0} + - target: {fileID: 3574753776192281768, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3574753776192281768, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3574753776192281768, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: 950 + objectReference: {fileID: 0} + - target: {fileID: 3574753776192281768, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.y + value: 950 + objectReference: {fileID: 0} + - target: {fileID: 3574753776192281768, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 960 + objectReference: {fileID: 0} + - target: {fileID: 3574753776192281768, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -475 + objectReference: {fileID: 0} + - target: {fileID: 3867892941296134446, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3867892941296134446, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3867892941296134446, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 110 + objectReference: {fileID: 0} + - target: {fileID: 3867892941296134446, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -128.92749 + objectReference: {fileID: 0} - target: {fileID: 4402649097945682381, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} propertyPath: m_AnchorMax.y value: 0 @@ -1661,6 +1813,206 @@ PrefabInstance: propertyPath: m_AnchoredPosition.y value: 0 objectReference: {fileID: 0} + - target: {fileID: 4508466005029774023, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4508466005029774023, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4508466005029774023, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: 746.6666 + objectReference: {fileID: 0} + - target: {fileID: 4508466005029774023, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.y + value: 82.145 + objectReference: {fileID: 0} + - target: {fileID: 4508466005029774023, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 373.3333 + objectReference: {fileID: 0} + - target: {fileID: 4508466005029774023, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -41.0725 + objectReference: {fileID: 0} + - target: {fileID: 4877560597037371998, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4877560597037371998, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4877560597037371998, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: 516.6666 + objectReference: {fileID: 0} + - target: {fileID: 4877560597037371998, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.y + value: 82.145 + objectReference: {fileID: 0} + - target: {fileID: 4877560597037371998, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 308.3333 + objectReference: {fileID: 0} + - target: {fileID: 4877560597037371998, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -51.0725 + objectReference: {fileID: 0} + - target: {fileID: 4970172673910910611, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4970172673910910611, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4970172673910910611, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 560 + objectReference: {fileID: 0} + - target: {fileID: 4970172673910910611, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -128.92749 + objectReference: {fileID: 0} + - target: {fileID: 5014123076969933146, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5014123076969933146, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5014123076969933146, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: 516.6666 + objectReference: {fileID: 0} + - target: {fileID: 5014123076969933146, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.y + value: 82.145 + objectReference: {fileID: 0} + - target: {fileID: 5014123076969933146, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 844.99994 + objectReference: {fileID: 0} + - target: {fileID: 5014123076969933146, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -51.0725 + objectReference: {fileID: 0} + - target: {fileID: 5537544254641949553, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.x + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5537544254641949553, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5537544254876115149, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5537544254876115149, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5537544254876115149, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: 1920 + objectReference: {fileID: 0} + - target: {fileID: 5537544254876115149, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 960 + objectReference: {fileID: 0} + - target: {fileID: 5537544254876115149, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -490 + objectReference: {fileID: 0} + - target: {fileID: 5537544254902102463, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5537544254902102463, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5537544254902102463, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: 1920 + objectReference: {fileID: 0} + - target: {fileID: 5537544254902102463, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 960 + objectReference: {fileID: 0} + - target: {fileID: 5537544254902102463, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -1475 + objectReference: {fileID: 0} + - target: {fileID: 5537544254942632730, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5537544254942632730, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.y + value: -17 + objectReference: {fileID: 0} + - target: {fileID: 5537544255139409306, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.x + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5537544255139409306, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5537544255207549200, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.x + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5537544255207549200, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: -17 + objectReference: {fileID: 0} + - target: {fileID: 5537544255360948360, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5537544255360948360, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5537544255360948360, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: 1920 + objectReference: {fileID: 0} + - target: {fileID: 5537544255360948360, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 960 + objectReference: {fileID: 0} + - target: {fileID: 5537544255973931161, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.x + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5537544255973931161, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5537544255973931161, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: -17 + objectReference: {fileID: 0} + - target: {fileID: 5537544255973931161, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.y + value: -17 + objectReference: {fileID: 0} + - target: {fileID: 5537544256336990598, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: -1903 + objectReference: {fileID: 0} + - target: {fileID: 5537544256336990598, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.y + value: 900 + objectReference: {fileID: 0} - target: {fileID: 6097443669449816740, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} propertyPath: m_AnchorMax.y value: 0 @@ -1677,5 +2029,69 @@ PrefabInstance: propertyPath: m_AnchoredPosition.y value: 0 objectReference: {fileID: 0} + - target: {fileID: 7454539576598611538, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7454539576598611538, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7454539576598611538, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: 746.6666 + objectReference: {fileID: 0} + - target: {fileID: 7454539576598611538, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.y + value: 82.145 + objectReference: {fileID: 0} + - target: {fileID: 7454539576598611538, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 1496.6665 + objectReference: {fileID: 0} + - target: {fileID: 7454539576598611538, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -51.0725 + objectReference: {fileID: 0} + - target: {fileID: 8344061337896375863, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8344061337896375863, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8344061337896375863, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.x + value: 1920 + objectReference: {fileID: 0} + - target: {fileID: 8344061337896375863, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_SizeDelta.y + value: 287.85498 + objectReference: {fileID: 0} + - target: {fileID: 8344061337896375863, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 960 + objectReference: {fileID: 0} + - target: {fileID: 8344061337896375863, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -143.92749 + objectReference: {fileID: 0} + - target: {fileID: 8756651770337650358, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8756651770337650358, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8756651770337650358, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.x + value: 110 + objectReference: {fileID: 0} + - target: {fileID: 8756651770337650358, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} + propertyPath: m_AnchoredPosition.y + value: -128.92749 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: c781445f4cf1c2a48be11cb75ea1c997, type: 3} diff --git a/Packages/StreamVideo/Samples~/VideoChat/Scripts/UI/PermissionsManager.cs b/Packages/StreamVideo/Samples~/VideoChat/Scripts/UI/PermissionsManager.cs new file mode 100644 index 00000000..be10debd --- /dev/null +++ b/Packages/StreamVideo/Samples~/VideoChat/Scripts/UI/PermissionsManager.cs @@ -0,0 +1,127 @@ +using System; +using UnityEngine; +#if UNITY_ANDROID +using UnityEngine.Android; +#endif +#if UNITY_IOS +using System.Collections; +#endif + +namespace StreamVideo.ExampleProject.UI +{ + public class PermissionsManager + { + public enum PermissionType + { + Camera, + Microphone + } + + public PermissionsManager(MonoBehaviour coroutineRunner) + { + _coroutineRunner = coroutineRunner; + } + + public bool HasPermission(PermissionType permissionType) + { +#if UNITY_STANDALONE + return true; +#elif UNITY_ANDROID + var androidPermission = PermissionTypeToAndroidPermission(permissionType); + return Permission.HasUserAuthorizedPermission(androidPermission); +#elif UNITY_IOS + var iosPermission = PermissionTypeToIOSPermission(permissionType); + return Application.HasUserAuthorization(iosPermission); +#else + Debug.LogWarning($"Handling permissions not implemented for platform: {Application.platform}. Requested {permissionType}. Assuming permission is granted."); + return true; +#endif + } + + + public void RequestPermission(PermissionType permissionType, Action onGranted = null, Action onDenied = null) + { +#if UNITY_ANDROID + RequestAndroidPermission(permissionType, onGranted, onDenied); +#elif UNITY_IOS + _coroutineRunner.StartCoroutine(RequestIOSPermissionCoroutine(permissionType, onGranted, onDenied)); +#else + Debug.LogError($"Handling permissions not implemented for platform: " + Application.platform); +#endif + } + + private readonly MonoBehaviour _coroutineRunner; + +#if UNITY_ANDROID + private void RequestAndroidPermission(PermissionType permissionType, Action onGranted = null, + Action onDenied = null) + { + var androidPermission = PermissionTypeToAndroidPermission(permissionType); + var callbacks = new PermissionCallbacks(); + Permission.RequestUserPermission(androidPermission, callbacks); + + callbacks.PermissionGranted += permissionName => + { + if (androidPermission == permissionName) + { + onGranted?.Invoke(); + } + }; + callbacks.PermissionDenied += permissionName => + { + if (androidPermission == permissionName) + { + onDenied?.Invoke(); + } + }; + callbacks.PermissionDeniedAndDontAskAgain += permissionName => + { + if (androidPermission == permissionName) + { + onDenied?.Invoke(); + } + }; + } + + private string PermissionTypeToAndroidPermission(PermissionType type) + { + switch (type) + { + case PermissionType.Camera: return Permission.Camera; + case PermissionType.Microphone: return Permission.Microphone; + default: + throw new ArgumentOutOfRangeException(nameof(type), type, null); + } + } +#endif + +#if UNITY_IOS + private IEnumerator RequestIOSPermissionCoroutine(PermissionType permissionType, Action onGranted = null, + Action onDenied = null) + { + var iosPermission = PermissionTypeToIOSPermission(permissionType); + yield return Application.RequestUserAuthorization(iosPermission); + + if (Application.HasUserAuthorization(iosPermission)) + { + onGranted?.Invoke(); + } + else + { + onDenied?.Invoke(); + } + } + + UserAuthorization PermissionTypeToIOSPermission(PermissionType type) + { + switch (type) + { + case PermissionType.Camera: return UserAuthorization.WebCam; + case PermissionType.Microphone: return UserAuthorization.Microphone; + default: + throw new ArgumentOutOfRangeException(nameof(type), type, null); + } + } +#endif + } +} \ No newline at end of file diff --git a/Packages/StreamVideo/Samples~/VideoChat/Scripts/UI/PermissionsManager.cs.meta b/Packages/StreamVideo/Samples~/VideoChat/Scripts/UI/PermissionsManager.cs.meta new file mode 100644 index 00000000..76f9db6e --- /dev/null +++ b/Packages/StreamVideo/Samples~/VideoChat/Scripts/UI/PermissionsManager.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 6146832fc2b94b3dbabe2ae3d1509721 +timeCreated: 1732010426 \ No newline at end of file diff --git a/Packages/StreamVideo/Samples~/VideoChat/Scripts/UI/UIManager.cs b/Packages/StreamVideo/Samples~/VideoChat/Scripts/UI/UIManager.cs index 9efff2ff..bec28d21 100644 --- a/Packages/StreamVideo/Samples~/VideoChat/Scripts/UI/UIManager.cs +++ b/Packages/StreamVideo/Samples~/VideoChat/Scripts/UI/UIManager.cs @@ -6,9 +6,6 @@ using StreamVideo.Core.StatefulModels; using StreamVideo.Libs.Utils; using UnityEngine; -#if UNITY_ANDROID -using UnityEngine.Android; -#endif namespace StreamVideo.ExampleProject.UI { @@ -19,76 +16,10 @@ public class UIManager : MonoBehaviour public VideoResolution SenderVideoResolution => new VideoResolution(_senderVideoWidth, _senderVideoHeight); public int SenderVideoFps => _senderVideoFps; - public void RequestCameraPermissions(Action onGranted = null, Action onDenied = null) - { -#if UNITY_ANDROID - var callbacks = new PermissionCallbacks(); - Permission.RequestUserPermission(Permission.Camera, callbacks); - - callbacks.PermissionGranted += _ => { onGranted?.Invoke(); }; - callbacks.PermissionDenied += permissionName => - { - onDenied?.Invoke(); - Debug.LogError($"{permissionName} permission was not granted. Video capturing will not work."); - }; - callbacks.PermissionDeniedAndDontAskAgain += (permissionName) => - { - onDenied?.Invoke(); - Debug.LogError($"{permissionName} permission was not granted. Video capturing will not work."); - }; -#elif UNITY_IOS - Debug.LogError($"Handling permissions not implemented for platform: " + Application.platform); -#endif - } - - public bool HasUserAuthorizedCameraPermission() - { -#if UNITY_STANDALONE - return true; //StreamTodo: check if this is true for all platforms -#elif UNITY_ANDROID - return Permission.HasUserAuthorizedPermission(Permission.Camera); -#else - Debug.LogError($"Handling permissions not implemented for platform: " + Application.platform); -#endif - } - - public void RequestMicrophonePermissions(Action onGranted = null, Action onDenied = null) - { -#if UNITY_ANDROID - var callbacks = new PermissionCallbacks(); - - callbacks.PermissionGranted += _ => { onGranted?.Invoke(); }; - callbacks.PermissionDenied += permissionName => - { - onDenied?.Invoke(); - Debug.LogError($"{permissionName} permission was not granted. Video capturing will not work."); - }; - callbacks.PermissionDeniedAndDontAskAgain += (permissionName) => - { - onDenied?.Invoke(); - Debug.LogError($"{permissionName} permission was not granted. Video capturing will not work."); - }; - - Permission.RequestUserPermission(Permission.Microphone, callbacks); - -#else - Debug.LogError($"Handling permissions not implemented for platform: " + Application.platform); -#endif - } - - public bool HasUserAuthorizedMicrophonePermission() - { -#if UNITY_STANDALONE - return true; //StreamTodo: check if this is true for all platforms -#elif UNITY_ANDROID - return Permission.HasUserAuthorizedPermission(Permission.Microphone); -#else - Debug.LogError($"Handling permissions not implemented for platform: " + Application.platform); -#endif - } - protected void Awake() { + _permissionsManager = new PermissionsManager(this); + _videoManager.Init(); _videoManager.CallStarted += OnCallStarted; @@ -100,9 +31,10 @@ protected void Awake() _portraitModeUIScreensSet.Init(_videoManager, uiManager: this); _landscapeModeUIScreensSet.Init(_videoManager, uiManager: this); - if (!HasUserAuthorizedCameraPermission()) + if (!_permissionsManager.HasPermission(PermissionsManager.PermissionType.Camera)) { - RequestCameraPermissions(onGranted: () => { SelectFirstWorkingCameraOrDefaultAsync().LogIfFailed(); }, + _permissionsManager.RequestPermission(PermissionsManager.PermissionType.Camera, + onGranted: () => { SelectFirstWorkingCameraOrDefaultAsync().LogIfFailed(); }, onDenied: () => Debug.LogError("Camera permission was not granted. Video capturing will not work.")); } @@ -111,9 +43,10 @@ protected void Awake() SelectFirstWorkingCameraOrDefaultAsync().LogIfFailed(); } - if (!HasUserAuthorizedMicrophonePermission()) + if (!_permissionsManager.HasPermission(PermissionsManager.PermissionType.Microphone)) { - RequestMicrophonePermissions(onGranted: SelectFirstMicrophone, + _permissionsManager.RequestPermission(PermissionsManager.PermissionType.Microphone, + onGranted: SelectFirstMicrophone, onDenied: () => Debug.LogError("Microphone permission was not granted. Audio capturing will not work.")); } @@ -151,13 +84,15 @@ protected void OnDestroy() [SerializeField] private UIScreensSet _landscapeModeUIScreensSet; - + [SerializeField] private UIScreensSet _portraitModeUIScreensSet; - + [SerializeField] private bool _forceTestPortraitMode; + private PermissionsManager _permissionsManager; + private void OnCallStarted(IStreamCall call) => ShowCallScreen(call); private void OnCallEnded() => ShowMainScreen(); @@ -242,10 +177,10 @@ private void SelectFirstMicrophone() private UIScreensSet GetCurrentScreenSet() { var isPortraitMode = IsPotraitMode(); - + _portraitModeUIScreensSet.gameObject.SetActive(isPortraitMode); _landscapeModeUIScreensSet.gameObject.SetActive(!isPortraitMode); - + return isPortraitMode ? _portraitModeUIScreensSet : _landscapeModeUIScreensSet; }