王琪诚

【任务】TAPD#

功能详情 初始化图片
配置文件 否
提交作者 QiCheng.Wang
评审人员
... ... @@ -1041,6 +1041,81 @@ MonoBehaviour:
m_OnClick:
m_PersistentCalls:
m_Calls: []
--- !u!1 &634381883
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 634381884}
- component: {fileID: 634381886}
- component: {fileID: 634381885}
m_Layer: 5
m_Name: InitImage
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &634381884
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 634381883}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1476497844}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &634381885
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 634381883}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: ca91c533a2d324ff79752f752ce4f585, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!222 &634381886
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 634381883}
m_CullTransparentMesh: 1
--- !u!1 &637033551
GameObject:
m_ObjectHideFlags: 0
... ... @@ -2799,6 +2874,7 @@ RectTransform:
- {fileID: 1539898518}
- {fileID: 1150663700}
- {fileID: 1347929217}
- {fileID: 634381884}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
... ... @@ -3004,6 +3080,7 @@ MonoBehaviour:
momentPrefab: {fileID: 3024470403460670727, guid: 84e990cc6a39843419b767e24b1b1312, type: 3}
coverImage: {fileID: 1130549156}
bottomImage: {fileID: 515045581}
InitImage: {fileID: 634381885}
--- !u!114 &1539898523
MonoBehaviour:
m_ObjectHideFlags: 0
... ...
... ... @@ -12,6 +12,7 @@ public class MomentManager : MonoBehaviour
public GameObject momentPrefab;
public Image coverImage;
public Image bottomImage;
public Image InitImage;
void Start()
{
... ... @@ -26,6 +27,7 @@ public class MomentManager : MonoBehaviour
{
Debug.Log("最终获取到的 JSON 数据:\n" + data);
InitFriendCircle(data);
InitImage.gameObject.SetActive(false);
}));
StartCoroutine(JsonLoaderManager.LoadJson("https://h5.edcc.cn/FriendCircle/json/appInfo.json","Jsons/appInfo",data =>
... ...