From dfb0eb593bd1420d02d0b4d703dd4288c26779a5 Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Tue, 22 Mar 2016 16:47:20 +0000 Subject: [PATCH] Fixed Stage objects blocking raycasts #391 --- .../Fungus/Narrative/Resources/Stage.prefab | 70 ++++++++++++++----- 1 file changed, 51 insertions(+), 19 deletions(-) diff --git a/Assets/Fungus/Narrative/Resources/Stage.prefab b/Assets/Fungus/Narrative/Resources/Stage.prefab index 0c8b04e7..27fe0412 100644 --- a/Assets/Fungus/Narrative/Resources/Stage.prefab +++ b/Assets/Fungus/Narrative/Resources/Stage.prefab @@ -146,6 +146,12 @@ MonoBehaviour: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 0} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 21300000, guid: ea8f56c43254d41728f5ac4e8299b6c9, type: 3} m_Type: 0 m_PreserveAspect: 1 @@ -167,6 +173,12 @@ MonoBehaviour: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 0} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 21300000, guid: ea8f56c43254d41728f5ac4e8299b6c9, type: 3} m_Type: 0 m_PreserveAspect: 1 @@ -188,7 +200,7 @@ MonoBehaviour: m_EditorClassIdentifier: portraitCanvas: {fileID: 22310270} dimPortraits: 1 - fadeDuration: .75 + fadeDuration: 0.75 moveDuration: 1 fadeEaseType: 4 moveEaseType: 4 @@ -251,6 +263,12 @@ MonoBehaviour: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 0} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 21300000, guid: ea8f56c43254d41728f5ac4e8299b6c9, type: 3} m_Type: 0 m_PreserveAspect: 1 @@ -272,6 +290,12 @@ MonoBehaviour: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 0} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 21300000, guid: ea8f56c43254d41728f5ac4e8299b6c9, type: 3} m_Type: 0 m_PreserveAspect: 1 @@ -293,6 +317,12 @@ MonoBehaviour: m_EditorClassIdentifier: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 0} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null m_Sprite: {fileID: 21300000, guid: ea8f56c43254d41728f5ac4e8299b6c9, type: 3} m_Type: 0 m_PreserveAspect: 1 @@ -346,8 +376,10 @@ Canvas: m_ReceivesEvents: 1 m_OverrideSorting: 0 m_OverridePixelPerfect: 0 + m_SortingBucketNormalizedSize: 0 m_SortingLayerID: 0 m_SortingOrder: 0 + m_TargetDisplay: 0 --- !u!224 &22410270 RectTransform: m_ObjectHideFlags: 1 @@ -360,11 +392,11 @@ RectTransform: m_Children: [] m_Father: {fileID: 22410274} m_RootOrder: 2 - m_AnchorMin: {x: .5, y: 1} - m_AnchorMax: {x: .5, y: 1} - m_AnchoredPosition: {x: 460.429993, y: -1000} + m_AnchorMin: {x: 0.5, y: 1} + m_AnchorMax: {x: 0.5, y: 1} + m_AnchoredPosition: {x: 460.43, y: -1000} m_SizeDelta: {x: 1000, y: 1000} - m_Pivot: {x: .5, y: 0} + m_Pivot: {x: 0.5, y: 0} --- !u!224 &22410272 RectTransform: m_ObjectHideFlags: 1 @@ -377,11 +409,11 @@ RectTransform: m_Children: [] m_Father: {fileID: 22410274} m_RootOrder: 3 - m_AnchorMin: {x: .5, y: 1} - m_AnchorMax: {x: .5, y: 1} + m_AnchorMin: {x: 0.5, y: 1} + m_AnchorMax: {x: 0.5, y: 1} m_AnchoredPosition: {x: -1300, y: -1000} m_SizeDelta: {x: 1000, y: 1000} - m_Pivot: {x: .5, y: 0} + m_Pivot: {x: 0.5, y: 0} --- !u!224 &22410274 RectTransform: m_ObjectHideFlags: 1 @@ -416,11 +448,11 @@ RectTransform: m_Children: [] m_Father: {fileID: 22410274} m_RootOrder: 0 - m_AnchorMin: {x: .5, y: 1} - m_AnchorMax: {x: .5, y: 1} + m_AnchorMin: {x: 0.5, y: 1} + m_AnchorMax: {x: 0.5, y: 1} m_AnchoredPosition: {x: 0, y: -1000} m_SizeDelta: {x: 1000, y: 1000} - m_Pivot: {x: .5, y: 0} + m_Pivot: {x: 0.5, y: 0} --- !u!224 &22410278 RectTransform: m_ObjectHideFlags: 1 @@ -433,11 +465,11 @@ RectTransform: m_Children: [] m_Father: {fileID: 22410274} m_RootOrder: 4 - m_AnchorMin: {x: .5, y: 1} - m_AnchorMax: {x: .5, y: 1} + m_AnchorMin: {x: 0.5, y: 1} + m_AnchorMax: {x: 0.5, y: 1} m_AnchoredPosition: {x: 1300, y: -1000} m_SizeDelta: {x: 1000, y: 1000} - m_Pivot: {x: .5, y: 0} + m_Pivot: {x: 0.5, y: 0} --- !u!224 &22410280 RectTransform: m_ObjectHideFlags: 1 @@ -450,11 +482,11 @@ RectTransform: m_Children: [] m_Father: {fileID: 22410274} m_RootOrder: 1 - m_AnchorMin: {x: .5, y: 1} - m_AnchorMax: {x: .5, y: 1} - m_AnchoredPosition: {x: -460.429993, y: -1000} + m_AnchorMin: {x: 0.5, y: 1} + m_AnchorMax: {x: 0.5, y: 1} + m_AnchoredPosition: {x: -460.43, y: -1000} m_SizeDelta: {x: 1000, y: 1000} - m_Pivot: {x: .5, y: 0} + m_Pivot: {x: 0.5, y: 0} --- !u!225 &22510270 CanvasGroup: m_ObjectHideFlags: 1 @@ -464,7 +496,7 @@ CanvasGroup: m_Enabled: 1 m_Alpha: 1 m_Interactable: 1 - m_BlocksRaycasts: 1 + m_BlocksRaycasts: 0 m_IgnoreParentGroups: 0 --- !u!1001 &100100000 Prefab: