From 8b47fb0f7fb558e334fe641affdefd2c39df24f1 Mon Sep 17 00:00:00 2001 From: Sonic853 Date: Tue, 10 Dec 2024 02:06:12 +0800 Subject: [PATCH] fix image download(wtf image) --- Demo.unity | 80 ++++++++++++++++---------------- Prefabs/UdonEventCalendar.prefab | 62 +++++++++++++------------ Scripts/EventCalendarConfig.cs | 2 +- package.json | 2 +- 4 files changed, 74 insertions(+), 72 deletions(-) diff --git a/Demo.unity b/Demo.unity index b15107b..87420b1 100644 --- a/Demo.unity +++ b/Demo.unity @@ -9528,27 +9528,27 @@ PrefabInstance: m_Modifications: - target: {fileID: 78646069490446262, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 78646069490446262, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 78646069490446262, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_SizeDelta.x - value: 0 + value: 833 objectReference: {fileID: 0} - target: {fileID: 78646069490446262, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_SizeDelta.y - value: 0 + value: 555 objectReference: {fileID: 0} - target: {fileID: 78646069490446262, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchoredPosition.x - value: 0 + value: 2082.5 objectReference: {fileID: 0} - target: {fileID: 78646069490446262, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchoredPosition.y - value: 0 + value: -277.5 objectReference: {fileID: 0} - target: {fileID: 224417253941565653, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchorMax.y @@ -9662,6 +9662,10 @@ PrefabInstance: propertyPath: serializationData.Prefab value: objectReference: {fileID: 966303082669836159, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} + - target: {fileID: 1196928919693896229, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} + propertyPath: serializationData.Prefab + value: + objectReference: {fileID: 1196928919693896229, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} - target: {fileID: 1464733894805780337, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchorMax.y value: 0 @@ -9820,27 +9824,27 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 2663942430935607138, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 2663942430935607138, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 2663942430935607138, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_SizeDelta.x - value: 0 + value: 833 objectReference: {fileID: 0} - target: {fileID: 2663942430935607138, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_SizeDelta.y - value: 0 + value: 555 objectReference: {fileID: 0} - target: {fileID: 2663942430935607138, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchoredPosition.x - value: 0 + value: 4581.5 objectReference: {fileID: 0} - target: {fileID: 2663942430935607138, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchoredPosition.y - value: 0 + value: -277.5 objectReference: {fileID: 0} - target: {fileID: 3082490962034551252, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchorMax.y @@ -10194,10 +10198,6 @@ PrefabInstance: propertyPath: serializationData.Prefab value: objectReference: {fileID: 6270542668440940131, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} - - target: {fileID: 6398354107315046014, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} - propertyPath: serializationData.Prefab - value: - objectReference: {fileID: 6398354107315046014, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} - target: {fileID: 6433316239404415552, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: serializationData.Prefab value: @@ -10208,27 +10208,27 @@ PrefabInstance: objectReference: {fileID: 6489400662300952217, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} - target: {fileID: 6682144237201121392, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 6682144237201121392, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 6682144237201121392, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_SizeDelta.x - value: 0 + value: 833 objectReference: {fileID: 0} - target: {fileID: 6682144237201121392, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_SizeDelta.y - value: 0 + value: 555 objectReference: {fileID: 0} - target: {fileID: 6682144237201121392, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchoredPosition.x - value: 0 + value: 3748.5 objectReference: {fileID: 0} - target: {fileID: 6682144237201121392, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchoredPosition.y - value: 0 + value: -277.5 objectReference: {fileID: 0} - target: {fileID: 6794697841580271345, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_SizeDelta.x @@ -10352,27 +10352,27 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 7604878498883189634, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 7604878498883189634, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 7604878498883189634, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_SizeDelta.x - value: 0 + value: 833 objectReference: {fileID: 0} - target: {fileID: 7604878498883189634, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_SizeDelta.y - value: 0 + value: 555 objectReference: {fileID: 0} - target: {fileID: 7604878498883189634, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchoredPosition.x - value: 0 + value: 1249.5 objectReference: {fileID: 0} - target: {fileID: 7604878498883189634, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchoredPosition.y - value: 0 + value: -277.5 objectReference: {fileID: 0} - target: {fileID: 7785470834332028799, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchorMax.y @@ -10416,27 +10416,27 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 7958407288342569866, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 7958407288342569866, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 7958407288342569866, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_SizeDelta.x - value: 0 + value: 833 objectReference: {fileID: 0} - target: {fileID: 7958407288342569866, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_SizeDelta.y - value: 0 + value: 555 objectReference: {fileID: 0} - target: {fileID: 7958407288342569866, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchoredPosition.x - value: 0 + value: 416.5 objectReference: {fileID: 0} - target: {fileID: 7958407288342569866, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchoredPosition.y - value: 0 + value: -277.5 objectReference: {fileID: 0} - target: {fileID: 7976278311250675867, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchorMax.y @@ -10660,27 +10660,27 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 8926318858479238959, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 8926318858479238959, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 8926318858479238959, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_SizeDelta.x - value: 0 + value: 833 objectReference: {fileID: 0} - target: {fileID: 8926318858479238959, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_SizeDelta.y - value: 0 + value: 555 objectReference: {fileID: 0} - target: {fileID: 8926318858479238959, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchoredPosition.x - value: 0 + value: 2915.5 objectReference: {fileID: 0} - target: {fileID: 8926318858479238959, guid: 2f556db9b74f47e4aa6ba260b3dc2092, type: 3} propertyPath: m_AnchoredPosition.y - value: 0 + value: -277.5 objectReference: {fileID: 0} m_RemovedComponents: [] m_RemovedGameObjects: [] diff --git a/Prefabs/UdonEventCalendar.prefab b/Prefabs/UdonEventCalendar.prefab index af3740e..a5efdec 100644 --- a/Prefabs/UdonEventCalendar.prefab +++ b/Prefabs/UdonEventCalendar.prefab @@ -1834,13 +1834,14 @@ MonoBehaviour: PrefabModifications: [] SerializationNodes: [] _udonSharpBackingUdonBehaviour: {fileID: 3999044955503871845} - UrlLoader: {fileID: 6398354107315046014} + UrlLoader: {fileID: 1196928919693896229} url: url: udonSendFunction: {fileID: 3347449202687684211} sendCustomEvent: LoadEvents setVariableName: content startOnLoad: 0 + useUpdate: 0 --- !u!114 &3999044955503871845 MonoBehaviour: m_ObjectHideFlags: 0 @@ -2034,10 +2035,10 @@ RectTransform: m_Children: [] m_Father: {fileID: 6794697841580271345} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 3748.5, y: -277.5} + m_SizeDelta: {x: 833, y: 555} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &934336835704635779 CanvasRenderer: @@ -4577,10 +4578,10 @@ RectTransform: m_Children: [] m_Father: {fileID: 6794697841580271345} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 2082.5, y: -277.5} + m_SizeDelta: {x: 833, y: 555} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &8742127330811786395 CanvasRenderer: @@ -5092,6 +5093,7 @@ MonoBehaviour: sendCustomEvent: SendFunction setVariableName: content startOnLoad: 0 + useUpdate: 0 --- !u!114 &6424249395652604828 MonoBehaviour: m_ObjectHideFlags: 0 @@ -6247,10 +6249,10 @@ RectTransform: m_Children: [] m_Father: {fileID: 6794697841580271345} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 2915.5, y: -277.5} + m_SizeDelta: {x: 833, y: 555} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &1992841427698275340 CanvasRenderer: @@ -7007,10 +7009,10 @@ RectTransform: m_Children: [] m_Father: {fileID: 6794697841580271345} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 1249.5, y: -277.5} + m_SizeDelta: {x: 833, y: 555} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &1825795813775124592 CanvasRenderer: @@ -7122,8 +7124,8 @@ GameObject: serializedVersion: 6 m_Component: - component: {fileID: 971289271115611649} - - component: {fileID: 6398354107315046014} - - component: {fileID: 8772217260898667103} + - component: {fileID: 1196928919693896229} + - component: {fileID: 5663773501726991566} m_Layer: 0 m_Name: UrlsStringLoader m_TagString: Untagged @@ -7146,7 +7148,7 @@ Transform: m_Children: [] m_Father: {fileID: 3021265489306998341} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!114 &6398354107315046014 +--- !u!114 &1196928919693896229 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -7167,7 +7169,7 @@ MonoBehaviour: PrefabModificationsReferencedUnityObjects: [] PrefabModifications: [] SerializationNodes: [] - _udonSharpBackingUdonBehaviour: {fileID: 8772217260898667103} + _udonSharpBackingUdonBehaviour: {fileID: 5663773501726991566} urls: [] isLoading: 0 udonSendFunctions: [] @@ -7178,7 +7180,7 @@ MonoBehaviour: cacheContent: 0 cacheUrls: [] cacheContents: [] ---- !u!114 &8772217260898667103 +--- !u!114 &5663773501726991566 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -8186,10 +8188,10 @@ RectTransform: m_Children: [] m_Father: {fileID: 6794697841580271345} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 4581.5, y: -277.5} + m_SizeDelta: {x: 833, y: 555} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &2291701887522237495 CanvasRenderer: @@ -11775,10 +11777,10 @@ RectTransform: m_Children: [] m_Father: {fileID: 6794697841580271345} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 416.5, y: -277.5} + m_SizeDelta: {x: 833, y: 555} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &2390479091560938677 CanvasRenderer: diff --git a/Scripts/EventCalendarConfig.cs b/Scripts/EventCalendarConfig.cs index af425ea..4df51d6 100644 --- a/Scripts/EventCalendarConfig.cs +++ b/Scripts/EventCalendarConfig.cs @@ -25,7 +25,7 @@ void Start() { if (!string.IsNullOrWhiteSpace(eventCalendarImageUrl.ToString())) urlSubmitterImage.url = eventCalendarImageUrl; - urlSubmitterImage.SubmitUrl(); + urlSubmitterImage.SubmitUrlWithUpdate(); } } } diff --git a/package.json b/package.json index 4e5ab6f..37bebcc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.sonic853.udon.event-calendar", - "version": "1.0.0", + "version": "1.0.1", "displayName": "Sonic853 - Udon Event Calendar", "description": "Udon 活动日历", "unity": "2022.3",