初始环境
This commit is contained in:
parent
a38eef8249
commit
5113e67fa6
7
.gitignore
vendored
7
.gitignore
vendored
@ -70,3 +70,10 @@ crashlytics-build.properties
|
|||||||
# Temporary auto-generated Android Assets
|
# Temporary auto-generated Android Assets
|
||||||
/[Aa]ssets/[Ss]treamingAssets/aa.meta
|
/[Aa]ssets/[Ss]treamingAssets/aa.meta
|
||||||
/[Aa]ssets/[Ss]treamingAssets/aa/*
|
/[Aa]ssets/[Ss]treamingAssets/aa/*
|
||||||
|
d2/.idea/
|
||||||
|
d2/apk/
|
||||||
|
d2/Library/Artifacts/02/02334b62bb5358547118c768b3213478
|
||||||
|
d2/Library/
|
||||||
|
d2/Temp/
|
||||||
|
d2/obj/
|
||||||
|
d2/Logs/
|
||||||
|
8
d2/Assets/Scenes.meta
Normal file
8
d2/Assets/Scenes.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 624cf817bd6b4ca43ab5bb408ce8248d
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
619
d2/Assets/Scenes/SampleScene.unity
Normal file
619
d2/Assets/Scenes/SampleScene.unity
Normal file
@ -0,0 +1,619 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!29 &1
|
||||||
|
OcclusionCullingSettings:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_OcclusionBakeSettings:
|
||||||
|
smallestOccluder: 5
|
||||||
|
smallestHole: 0.25
|
||||||
|
backfaceThreshold: 100
|
||||||
|
m_SceneGUID: 00000000000000000000000000000000
|
||||||
|
m_OcclusionCullingData: {fileID: 0}
|
||||||
|
--- !u!104 &2
|
||||||
|
RenderSettings:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 9
|
||||||
|
m_Fog: 0
|
||||||
|
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
||||||
|
m_FogMode: 3
|
||||||
|
m_FogDensity: 0.01
|
||||||
|
m_LinearFogStart: 0
|
||||||
|
m_LinearFogEnd: 300
|
||||||
|
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
|
||||||
|
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
|
||||||
|
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
|
||||||
|
m_AmbientIntensity: 1
|
||||||
|
m_AmbientMode: 3
|
||||||
|
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
|
||||||
|
m_SkyboxMaterial: {fileID: 0}
|
||||||
|
m_HaloStrength: 0.5
|
||||||
|
m_FlareStrength: 1
|
||||||
|
m_FlareFadeSpeed: 3
|
||||||
|
m_HaloTexture: {fileID: 0}
|
||||||
|
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
m_DefaultReflectionMode: 0
|
||||||
|
m_DefaultReflectionResolution: 128
|
||||||
|
m_ReflectionBounces: 1
|
||||||
|
m_ReflectionIntensity: 1
|
||||||
|
m_CustomReflection: {fileID: 0}
|
||||||
|
m_Sun: {fileID: 0}
|
||||||
|
m_UseRadianceAmbientProbe: 0
|
||||||
|
--- !u!157 &3
|
||||||
|
LightmapSettings:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 12
|
||||||
|
m_GIWorkflowMode: 1
|
||||||
|
m_GISettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_BounceScale: 1
|
||||||
|
m_IndirectOutputScale: 1
|
||||||
|
m_AlbedoBoost: 1
|
||||||
|
m_EnvironmentLightingMode: 0
|
||||||
|
m_EnableBakedLightmaps: 0
|
||||||
|
m_EnableRealtimeLightmaps: 0
|
||||||
|
m_LightmapEditorSettings:
|
||||||
|
serializedVersion: 12
|
||||||
|
m_Resolution: 2
|
||||||
|
m_BakeResolution: 40
|
||||||
|
m_AtlasSize: 1024
|
||||||
|
m_AO: 0
|
||||||
|
m_AOMaxDistance: 1
|
||||||
|
m_CompAOExponent: 1
|
||||||
|
m_CompAOExponentDirect: 0
|
||||||
|
m_ExtractAmbientOcclusion: 0
|
||||||
|
m_Padding: 2
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_LightmapsBakeMode: 1
|
||||||
|
m_TextureCompression: 1
|
||||||
|
m_FinalGather: 0
|
||||||
|
m_FinalGatherFiltering: 1
|
||||||
|
m_FinalGatherRayCount: 256
|
||||||
|
m_ReflectionCompression: 2
|
||||||
|
m_MixedBakeMode: 2
|
||||||
|
m_BakeBackend: 0
|
||||||
|
m_PVRSampling: 1
|
||||||
|
m_PVRDirectSampleCount: 32
|
||||||
|
m_PVRSampleCount: 500
|
||||||
|
m_PVRBounces: 2
|
||||||
|
m_PVREnvironmentSampleCount: 500
|
||||||
|
m_PVREnvironmentReferencePointCount: 2048
|
||||||
|
m_PVRFilteringMode: 2
|
||||||
|
m_PVRDenoiserTypeDirect: 0
|
||||||
|
m_PVRDenoiserTypeIndirect: 0
|
||||||
|
m_PVRDenoiserTypeAO: 0
|
||||||
|
m_PVRFilterTypeDirect: 0
|
||||||
|
m_PVRFilterTypeIndirect: 0
|
||||||
|
m_PVRFilterTypeAO: 0
|
||||||
|
m_PVREnvironmentMIS: 0
|
||||||
|
m_PVRCulling: 1
|
||||||
|
m_PVRFilteringGaussRadiusDirect: 1
|
||||||
|
m_PVRFilteringGaussRadiusIndirect: 5
|
||||||
|
m_PVRFilteringGaussRadiusAO: 2
|
||||||
|
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||||
|
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||||
|
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||||
|
m_ExportTrainingData: 0
|
||||||
|
m_TrainingDataDestination: TrainingData
|
||||||
|
m_LightProbeSampleCountMultiplier: 4
|
||||||
|
m_LightingDataAsset: {fileID: 0}
|
||||||
|
m_LightingSettings: {fileID: 0}
|
||||||
|
--- !u!196 &4
|
||||||
|
NavMeshSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_BuildSettings:
|
||||||
|
serializedVersion: 3
|
||||||
|
agentTypeID: 0
|
||||||
|
agentRadius: 0.5
|
||||||
|
agentHeight: 2
|
||||||
|
agentSlope: 45
|
||||||
|
agentClimb: 0.4
|
||||||
|
ledgeDropHeight: 0
|
||||||
|
maxJumpAcrossDistance: 0
|
||||||
|
minRegionArea: 2
|
||||||
|
manualCellSize: 0
|
||||||
|
cellSize: 0.16666667
|
||||||
|
manualTileSize: 0
|
||||||
|
tileSize: 256
|
||||||
|
buildHeightMesh: 0
|
||||||
|
maxJobWorkers: 0
|
||||||
|
preserveTilesOutsideBounds: 0
|
||||||
|
debug:
|
||||||
|
m_Flags: 0
|
||||||
|
m_NavMeshData: {fileID: 0}
|
||||||
|
--- !u!1 &414618347
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 414618350}
|
||||||
|
- component: {fileID: 414618349}
|
||||||
|
- component: {fileID: 414618348}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: EventSystem
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!114 &414618348
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 414618347}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_SendPointerHoverToParent: 1
|
||||||
|
m_HorizontalAxis: Horizontal
|
||||||
|
m_VerticalAxis: Vertical
|
||||||
|
m_SubmitButton: Submit
|
||||||
|
m_CancelButton: Cancel
|
||||||
|
m_InputActionsPerSecond: 10
|
||||||
|
m_RepeatDelay: 0.5
|
||||||
|
m_ForceModuleActive: 0
|
||||||
|
--- !u!114 &414618349
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 414618347}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_FirstSelected: {fileID: 0}
|
||||||
|
m_sendNavigationEvents: 1
|
||||||
|
m_DragThreshold: 10
|
||||||
|
--- !u!4 &414618350
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 414618347}
|
||||||
|
serializedVersion: 2
|
||||||
|
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: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &519420028
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 519420032}
|
||||||
|
- component: {fileID: 519420031}
|
||||||
|
- component: {fileID: 519420029}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Main Camera
|
||||||
|
m_TagString: MainCamera
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!81 &519420029
|
||||||
|
AudioListener:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 519420028}
|
||||||
|
m_Enabled: 1
|
||||||
|
--- !u!20 &519420031
|
||||||
|
Camera:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 519420028}
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 2
|
||||||
|
m_ClearFlags: 2
|
||||||
|
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
|
||||||
|
m_projectionMatrixMode: 1
|
||||||
|
m_GateFitMode: 2
|
||||||
|
m_FOVAxisMode: 0
|
||||||
|
m_Iso: 200
|
||||||
|
m_ShutterSpeed: 0.005
|
||||||
|
m_Aperture: 16
|
||||||
|
m_FocusDistance: 10
|
||||||
|
m_FocalLength: 50
|
||||||
|
m_BladeCount: 5
|
||||||
|
m_Curvature: {x: 2, y: 11}
|
||||||
|
m_BarrelClipping: 0.25
|
||||||
|
m_Anamorphism: 0
|
||||||
|
m_SensorSize: {x: 36, y: 24}
|
||||||
|
m_LensShift: {x: 0, y: 0}
|
||||||
|
m_NormalizedViewPortRect:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
width: 1
|
||||||
|
height: 1
|
||||||
|
near clip plane: 0.3
|
||||||
|
far clip plane: 1000
|
||||||
|
field of view: 60
|
||||||
|
orthographic: 1
|
||||||
|
orthographic size: 5
|
||||||
|
m_Depth: -1
|
||||||
|
m_CullingMask:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 4294967295
|
||||||
|
m_RenderingPath: -1
|
||||||
|
m_TargetTexture: {fileID: 0}
|
||||||
|
m_TargetDisplay: 0
|
||||||
|
m_TargetEye: 0
|
||||||
|
m_HDR: 1
|
||||||
|
m_AllowMSAA: 0
|
||||||
|
m_AllowDynamicResolution: 0
|
||||||
|
m_ForceIntoRT: 0
|
||||||
|
m_OcclusionCulling: 0
|
||||||
|
m_StereoConvergence: 10
|
||||||
|
m_StereoSeparation: 0.022
|
||||||
|
--- !u!4 &519420032
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 519420028}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: -10}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &556673528
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 556673530}
|
||||||
|
- component: {fileID: 556673529}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: GameManage
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!114 &556673529
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 556673528}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: aac5ea9ab7ec9df4da8e1e1654528df4, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
--- !u!4 &556673530
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 556673528}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 141.09702, y: 1342.5989, z: -19.846577}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &875168315
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 875168316}
|
||||||
|
- component: {fileID: 875168318}
|
||||||
|
- component: {fileID: 875168317}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Panel
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &875168316
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 875168315}
|
||||||
|
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:
|
||||||
|
- {fileID: 1216812011}
|
||||||
|
m_Father: {fileID: 1586556839}
|
||||||
|
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 &875168317
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 875168315}
|
||||||
|
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: 0.392}
|
||||||
|
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: 10907, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Type: 1
|
||||||
|
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 &875168318
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 875168315}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!1 &1216812010
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1216812011}
|
||||||
|
- component: {fileID: 1216812014}
|
||||||
|
- component: {fileID: 1216812013}
|
||||||
|
- component: {fileID: 1216812012}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Image
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &1216812011
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1216812010}
|
||||||
|
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: 875168316}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: -2188, y: 0}
|
||||||
|
m_SizeDelta: {x: 100, y: 100}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!114 &1216812012
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1216812010}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: eb5e86ba02993fd42afb26dde82ca88c, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
--- !u!114 &1216812013
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1216812010}
|
||||||
|
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: 0}
|
||||||
|
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 &1216812014
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1216812010}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!1 &1586556834
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1586556839}
|
||||||
|
- component: {fileID: 1586556838}
|
||||||
|
- component: {fileID: 1586556837}
|
||||||
|
- component: {fileID: 1586556836}
|
||||||
|
- component: {fileID: 1586556835}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Canvas
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!114 &1586556835
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1586556834}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 39dce29244ea2d849b57ca55f0d8a453, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
seleCarObject: {fileID: 0}
|
||||||
|
carObjects: []
|
||||||
|
templateGrid: {fileID: 1216812010}
|
||||||
|
gridParent: {fileID: 875168316}
|
||||||
|
--- !u!114 &1586556836
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1586556834}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_IgnoreReversedGraphics: 1
|
||||||
|
m_BlockingObjects: 0
|
||||||
|
m_BlockingMask:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 4294967295
|
||||||
|
--- !u!114 &1586556837
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1586556834}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_UiScaleMode: 1
|
||||||
|
m_ReferencePixelsPerUnit: 100
|
||||||
|
m_ScaleFactor: 1
|
||||||
|
m_ReferenceResolution: {x: 1080, y: 1920}
|
||||||
|
m_ScreenMatchMode: 0
|
||||||
|
m_MatchWidthOrHeight: 0
|
||||||
|
m_PhysicalUnit: 3
|
||||||
|
m_FallbackScreenDPI: 96
|
||||||
|
m_DefaultSpriteDPI: 96
|
||||||
|
m_DynamicPixelsPerUnit: 1
|
||||||
|
m_PresetInfoIsWorld: 0
|
||||||
|
--- !u!223 &1586556838
|
||||||
|
Canvas:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1586556834}
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 3
|
||||||
|
m_RenderMode: 0
|
||||||
|
m_Camera: {fileID: 0}
|
||||||
|
m_PlaneDistance: 100
|
||||||
|
m_PixelPerfect: 0
|
||||||
|
m_ReceivesEvents: 1
|
||||||
|
m_OverrideSorting: 0
|
||||||
|
m_OverridePixelPerfect: 0
|
||||||
|
m_SortingBucketNormalizedSize: 0
|
||||||
|
m_VertexColorAlwaysGammaSpace: 0
|
||||||
|
m_AdditionalShaderChannelsFlag: 0
|
||||||
|
m_UpdateRectTransformForStandalone: 0
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_TargetDisplay: 0
|
||||||
|
--- !u!224 &1586556839
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1586556834}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 0, y: 0, z: 0}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 875168316}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
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_Pivot: {x: 0, y: 0}
|
||||||
|
--- !u!1660057539 &9223372036854775807
|
||||||
|
SceneRoots:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_Roots:
|
||||||
|
- {fileID: 519420032}
|
||||||
|
- {fileID: 414618350}
|
||||||
|
- {fileID: 1586556839}
|
||||||
|
- {fileID: 556673530}
|
7
d2/Assets/Scenes/SampleScene.unity.meta
Normal file
7
d2/Assets/Scenes/SampleScene.unity.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2cda990e2423bbf4892e6590ba056729
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
d2/Assets/Script.meta
Normal file
8
d2/Assets/Script.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: fdf2e170e4fe8884993798109add8642
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
19
d2/Assets/Script/GameManager.cs
Normal file
19
d2/Assets/Script/GameManager.cs
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace Script
|
||||||
|
{
|
||||||
|
public class GameManager : MonoBehaviour
|
||||||
|
{
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
11
d2/Assets/Script/GameManager.cs.meta
Normal file
11
d2/Assets/Script/GameManager.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: aac5ea9ab7ec9df4da8e1e1654528df4
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
d2/Assets/Script/Map.meta
Normal file
8
d2/Assets/Script/Map.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 488b74011bad5464485c3cb7ae15fe54
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
65
d2/Assets/Script/Map/MapManager.cs
Normal file
65
d2/Assets/Script/Map/MapManager.cs
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.Serialization;
|
||||||
|
|
||||||
|
namespace Script.Map
|
||||||
|
{
|
||||||
|
public class MapManager : MonoBehaviour
|
||||||
|
{
|
||||||
|
public static MapManager ins;
|
||||||
|
[SerializeField] private CarObject seleCarObject;
|
||||||
|
|
||||||
|
[SerializeField] private List<CarObject> carObjects;
|
||||||
|
[SerializeField] private GameObject templateGrid;
|
||||||
|
|
||||||
|
public Grid[,] MapGrid ;
|
||||||
|
[SerializeField] private Transform gridParent;
|
||||||
|
public int x { get; private set; }
|
||||||
|
public int y { get; private set; }
|
||||||
|
public bool InitReady { get; private set; } = false;
|
||||||
|
|
||||||
|
private void Awake()
|
||||||
|
{
|
||||||
|
ins = this;
|
||||||
|
Init(10, 10);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Init(int _x,int _y)
|
||||||
|
{
|
||||||
|
InitReady = false;
|
||||||
|
x = _x;
|
||||||
|
y = _y;
|
||||||
|
MapGrid = new Grid[x, y];
|
||||||
|
StartCoroutine(InitGrid());
|
||||||
|
}
|
||||||
|
|
||||||
|
private IEnumerator InitGrid(Action action=null)
|
||||||
|
{
|
||||||
|
for (var i = 0; i < x; i++)
|
||||||
|
{
|
||||||
|
for (var j = 0; j < y; j++)
|
||||||
|
{
|
||||||
|
MapGrid[i, j] = Instantiate(templateGrid,gridParent).GetComponent<Grid>();
|
||||||
|
MapGrid[i,j].SetData(i,j);
|
||||||
|
MapGrid[i,j].SetBool(true);
|
||||||
|
MapGrid[i, j].SetRestPostion();
|
||||||
|
yield return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (var grid in MapGrid)
|
||||||
|
{
|
||||||
|
grid.SetAdjacentGrid();
|
||||||
|
}
|
||||||
|
action?.Invoke();
|
||||||
|
InitReady = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void RestGrid(int _gx,int _gy,bool bo)
|
||||||
|
{
|
||||||
|
MapGrid[_gx,_gy].SetBool(bo);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
11
d2/Assets/Script/Map/MapManager.cs.meta
Normal file
11
d2/Assets/Script/Map/MapManager.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 39dce29244ea2d849b57ca55f0d8a453
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
d2/Assets/Script/ObjectEndity.meta
Normal file
8
d2/Assets/Script/ObjectEndity.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9cc63142d6011e7449828072d1ccc954
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
9
d2/Assets/Script/ObjectEndity/CarObject.cs
Normal file
9
d2/Assets/Script/ObjectEndity/CarObject.cs
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class CarObject : MonoBehaviour
|
||||||
|
{
|
||||||
|
[SerializeField] private List<PassengerObject> _passengerObjects;
|
||||||
|
public ColorEnum carColor;
|
||||||
|
}
|
11
d2/Assets/Script/ObjectEndity/CarObject.cs.meta
Normal file
11
d2/Assets/Script/ObjectEndity/CarObject.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ff569b0e1c024fc4d98c7fa20c2b2635
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
85
d2/Assets/Script/ObjectEndity/Grid.cs
Normal file
85
d2/Assets/Script/ObjectEndity/Grid.cs
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Script.Map;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class Grid : MonoBehaviour
|
||||||
|
{
|
||||||
|
public int x { get; private set; }
|
||||||
|
public int y { get; private set; }
|
||||||
|
public bool Open { get; private set; }
|
||||||
|
public Grid East { get; private set; }
|
||||||
|
public Grid South { get; private set; }
|
||||||
|
public Grid West { get; private set; }
|
||||||
|
public Grid North { get; private set; }
|
||||||
|
|
||||||
|
public void SetData(int _x,int _y)
|
||||||
|
{
|
||||||
|
x = _x;
|
||||||
|
y = _y;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetBool(bool bo)
|
||||||
|
{
|
||||||
|
Open = bo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetRestPostion()
|
||||||
|
{
|
||||||
|
transform.localPosition = new Vector3(x*100, y * -100,0);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void SetAdjacentGrid()
|
||||||
|
{
|
||||||
|
if (x - 1>=0)
|
||||||
|
{
|
||||||
|
MapManager.ins.MapGrid[x - 1,y].SetEast(this);
|
||||||
|
}
|
||||||
|
if (y - 1>=0)
|
||||||
|
{
|
||||||
|
MapManager.ins.MapGrid[x,y - 1].SetSouth(this);
|
||||||
|
}
|
||||||
|
if (y + 1<MapManager.ins.y)
|
||||||
|
{
|
||||||
|
MapManager.ins.MapGrid[x,y + 1].SetNorth(this);
|
||||||
|
}
|
||||||
|
if (x + 1<MapManager.ins.x)
|
||||||
|
{
|
||||||
|
MapManager.ins.MapGrid[x + 1,y].SetWest(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetEast(Grid grid)
|
||||||
|
{
|
||||||
|
East = grid;
|
||||||
|
}
|
||||||
|
public void SetSouth(Grid grid)
|
||||||
|
{
|
||||||
|
South = grid;
|
||||||
|
}
|
||||||
|
public void SetWest(Grid grid)
|
||||||
|
{
|
||||||
|
West = grid;
|
||||||
|
}
|
||||||
|
public void SetNorth(Grid grid)
|
||||||
|
{
|
||||||
|
North = grid;
|
||||||
|
}
|
||||||
|
public void ResetPosition()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
11
d2/Assets/Script/ObjectEndity/Grid.cs.meta
Normal file
11
d2/Assets/Script/ObjectEndity/Grid.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: eb5e86ba02993fd42afb26dde82ca88c
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
19
d2/Assets/Script/ObjectEndity/PassengerObject.cs
Normal file
19
d2/Assets/Script/ObjectEndity/PassengerObject.cs
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class PassengerObject : MonoBehaviour
|
||||||
|
{
|
||||||
|
public ColorEnum passColor=ColorEnum.white;
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
11
d2/Assets/Script/ObjectEndity/PassengerObject.cs.meta
Normal file
11
d2/Assets/Script/ObjectEndity/PassengerObject.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6f58acfc3b7dd6d4781eecbf343cf983
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
d2/Assets/Script/Type.meta
Normal file
8
d2/Assets/Script/Type.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 86b0342e9def6bf4c83dd9a027baee20
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
11
d2/Assets/Script/Type/ColorEnum.cs
Normal file
11
d2/Assets/Script/Type/ColorEnum.cs
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Unity.Collections.LowLevel.Unsafe;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public enum ColorEnum
|
||||||
|
{
|
||||||
|
white=0,
|
||||||
|
red=1,
|
||||||
|
yellow=2,
|
||||||
|
}
|
11
d2/Assets/Script/Type/ColorEnum.cs.meta
Normal file
11
d2/Assets/Script/Type/ColorEnum.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 307cfed5c54afaf40b4e0c44b586fcf9
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
d2/Assets/Script/UI.meta
Normal file
8
d2/Assets/Script/UI.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 73245a9edf25fb54ea7b8819264dd329
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
d2/Assets/WX-WASM-SDK-V2.meta
Normal file
8
d2/Assets/WX-WASM-SDK-V2.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f6228272562f94840a2e0b95f4a6d56f
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
956
d2/Assets/WX-WASM-SDK-V2/CHANGELOG.md
Normal file
956
d2/Assets/WX-WASM-SDK-V2/CHANGELOG.md
Normal file
@ -0,0 +1,956 @@
|
|||||||
|
<!--
|
||||||
|
Feature - 新增功能/接口
|
||||||
|
Changed - 功能/接口变更
|
||||||
|
Deprecated - 不建议使用的功能/接口
|
||||||
|
Removed - 删除功能/接口
|
||||||
|
Fixed - 修复问题
|
||||||
|
Others - 其他
|
||||||
|
-->
|
||||||
|
## 2024-5-15 【普通更新】
|
||||||
|
### Feature
|
||||||
|
* 普通:支持JS构建模板,请查阅[模板文档](https://wechat-miniprogram.github.io/minigame-unity-webgl-transform/Design/BuildTemplate.html)
|
||||||
|
* 普通:调整启动封面表现,默认进度动画加速
|
||||||
|
* 普通:writeFile/unlink操作文件时同步更新启动插件维护的缓存信息
|
||||||
|
* 普通:支持自定义微信系统字体字符集
|
||||||
|
* 普通:网络接口如UnityWebRequest支持通过添加特殊请求头`request.SetRequestHeader("wechatminigame-preload", "1")`做预下载,缓存到用户目录但不增加unity内存。当需要使用时不增加请求头重新请求即可从用户目录读取缓存使用。
|
||||||
|
* 普通:网络接口如UnityWebRequest支持通过添加特殊请求头`request.SetRequestHeader("wechatminigame-skipclean", "1")`不做旧缓存淘汰。
|
||||||
|
* 普通:适配插件版本升级到1.2.50
|
||||||
|
|
||||||
|
## 2024-5-15 【普通更新】
|
||||||
|
### Fixed
|
||||||
|
* 普通:修复团结版dotnet wasm加载报错
|
||||||
|
* 普通:修复音频的长度为负数时的异常stop
|
||||||
|
* 普通:修复配置文件重置bug
|
||||||
|
|
||||||
|
## 2024-4-17 【普通更新】
|
||||||
|
### Feature
|
||||||
|
* 普通:编译参数增加ERROR_ON_UNDEFINED_SYMBOLS
|
||||||
|
* 适配插件版本升级到1.2.45
|
||||||
|
### Fixed
|
||||||
|
* 普通:修复团结版dotnet wasm加载报错
|
||||||
|
* 普通:修复音频的长度为负数时的异常stop
|
||||||
|
* 普通:修复配置文件重置bug
|
||||||
|
|
||||||
|
## 2024-4-3 【重要更新】
|
||||||
|
包含重要bugfix、特性支持
|
||||||
|
### Fixed
|
||||||
|
* 重要:修复UDP接口处理buffer
|
||||||
|
* 重要:修复unity-namespace.js部分环境变量丢失问题
|
||||||
|
|
||||||
|
## 2024-3-28 【普通更新】
|
||||||
|
### Feature
|
||||||
|
* 普通:优化对团结版的导出支持
|
||||||
|
### Fixed
|
||||||
|
* 普通:兼容PlayDelayed播放
|
||||||
|
* 普通:兼容FMOD2.02版本
|
||||||
|
* 普通:修复FState偶现报错
|
||||||
|
|
||||||
|
## 2024-3-5 【普通更新】
|
||||||
|
### Feature
|
||||||
|
* 普通:WXAssetBundle支持切换CDN
|
||||||
|
* 普通:优化VideoPlayer组件
|
||||||
|
* 普通:更新小游戏模板捕获全局错误
|
||||||
|
* 普通:高性能+模式不再限制需要iOS>15.0
|
||||||
|
### Fixed
|
||||||
|
* 普通:修复wx.onBluetoothDeviceFound
|
||||||
|
* 普通:修复wx.onUserCaptureScreen
|
||||||
|
* 普通:修复wx.getAppAuthorizeSetting
|
||||||
|
* 普通:修复fs.stat
|
||||||
|
* 普通:修复截屏回调
|
||||||
|
* 普通:unity21.3网络超时时间设置
|
||||||
|
|
||||||
|
## 2024-1-18 【普通更新】
|
||||||
|
* 普通:更新适配插件版本到1.2.38
|
||||||
|
### Fixed
|
||||||
|
* 普通:不支持WebGL2的旧Android微信版本提供升级指引
|
||||||
|
|
||||||
|
## 2024-1-15 【普通更新】
|
||||||
|
### Feature
|
||||||
|
* 重要:增加iOS高性能+(iOSPerformancePlus)选项,请查阅[高性能+模式](https://developers.weixin.qq.com/minigame/dev/guide/performance/perf-high-performance-plus.html),有助于提升渲染兼容性、降低WebContent进程内存
|
||||||
|
* 普通:陀螺仪去json性能优化
|
||||||
|
### Fixed
|
||||||
|
* 普通:修复蓝牙数据传输问题
|
||||||
|
* 普通:修复广告低版本微信ReportshareBehavior上报问题
|
||||||
|
* 普通:修复2021.3.33 ContextMenu适配
|
||||||
|
* 普通:修复开放域排行榜触控
|
||||||
|
|
||||||
|
## 2024-1-2 【重要更新】
|
||||||
|
包含重要bugfix、特性支持
|
||||||
|
### Feature
|
||||||
|
* 普通:启动剧情新增Hash 、版本号兼容验证逻辑
|
||||||
|
* 普通:转换配置新增iOS dpr选项
|
||||||
|
* 普通:C# SDK支持文档注释
|
||||||
|
### Fixed
|
||||||
|
* 重要:修复Android系统代码分包Patch功能不生效的问题(需同时升级分包工具插件至1.1.12)
|
||||||
|
* 普通:修复压缩纹理工具在一些特殊字符转义失败的bug
|
||||||
|
|
||||||
|
## 2023-12-18 重要更新】
|
||||||
|
包含重要bugfix、特性支持
|
||||||
|
### Feature
|
||||||
|
* 普通:TouchStart/TouchEnd去json性能优化
|
||||||
|
### Fixed
|
||||||
|
* 重要:修复TCP接口处理buffer
|
||||||
|
|
||||||
|
## 2023-12-12
|
||||||
|
【重要更新】包含重要bugfix、特性支持
|
||||||
|
### Feature
|
||||||
|
* 重要:优化TCP接口能力,使用请查阅[网络通信适配](https://github.com/wechat-miniprogram/minigame-unity-webgl-transform/blob/main/Design/UsingNetworking.md)
|
||||||
|
* 重要:优化UDP接口能力
|
||||||
|
* 普通:优化启动剧情能力(Beta)
|
||||||
|
* 普通:增加接口WX.CanIUse
|
||||||
|
|
||||||
|
## 2023-12-08
|
||||||
|
【重要更新】包含重要bugfix、特性支持
|
||||||
|
### Feature
|
||||||
|
* 重要:新增启动剧情能力(Beta)
|
||||||
|
* 重要:新增TCP接口能力
|
||||||
|
* 普通:更新适配插件版本到1.2.34
|
||||||
|
### Fixed
|
||||||
|
* 严重:修复TouchMove在<iOS 15.0系统BigUnit64Array兼容性问题
|
||||||
|
* 严重:修复适配插件处理代码分包时序导致的一定概率启动失败
|
||||||
|
|
||||||
|
## 2023-11-29
|
||||||
|
【普通更新】
|
||||||
|
### Fixed
|
||||||
|
* 普通:修复TouchMove优化在2020之前版本产生的导出错误
|
||||||
|
|
||||||
|
## 2023-11-28
|
||||||
|
【重要更新】包含重要bugfix、特性支持
|
||||||
|
### Feature
|
||||||
|
* 普通:FileSystem Stat支持isDirectory和isFile
|
||||||
|
* 普通:优化胶水层代码,删减多余代码
|
||||||
|
* 重要:TouchMove触摸性能优化
|
||||||
|
* 重要:优化微信字体所占用的MonoHeap临时内存
|
||||||
|
### Fixed
|
||||||
|
* 普通:修复IOS音频被打断无法重新播放
|
||||||
|
* 普通:修复2022导出Video的BUG
|
||||||
|
|
||||||
|
## 2023-11-10
|
||||||
|
【普通更新】
|
||||||
|
### Feature
|
||||||
|
* 普通:支持2022 Input Field组件适配微信输入法
|
||||||
|
* 普通:PC端和开发者工具支持Unity VideoPlayer组件
|
||||||
|
|
||||||
|
## 2023-11-02
|
||||||
|
【普通更新】
|
||||||
|
### Fixed
|
||||||
|
* 修复部分首资源包压缩异常问题
|
||||||
|
|
||||||
|
## 2023-10-20
|
||||||
|
【普通更新】
|
||||||
|
### Feature
|
||||||
|
* 重要:Unity2022 development build的导出支持
|
||||||
|
* 普通:更新小游戏云测试profile获取的性能数据
|
||||||
|
### Fixed
|
||||||
|
* 普通:修复微信压缩纹理工具对音频ab包的处理bug问题
|
||||||
|
* 普通:修复微信压缩纹理工具在 MacOS M1系列芯片执行异常问题
|
||||||
|
|
||||||
|
## 2023-10-11【普通更新】
|
||||||
|
### Feature
|
||||||
|
* 适配Video Player, 安卓3.0.0基础库/IOS 3.1.1基础库且只支持播放一个视频
|
||||||
|
|
||||||
|
## 2023-9-26
|
||||||
|
【重要更新】包含重要bugfix、特性支持
|
||||||
|
### Feature
|
||||||
|
* 适配Application.targetFramerate,无需再调用小游戏的帧率设置API
|
||||||
|
### Fixed
|
||||||
|
* 重要:修复wasm分包patch未生效的问题
|
||||||
|
* 重要:修复WXAssetBundle在异常时上报错误
|
||||||
|
* 更新适配插件版本到1.2.31
|
||||||
|
|
||||||
|
## 2023-09-20
|
||||||
|
### Feature
|
||||||
|
* API协议更新至3.0.1版本,增加模糊地理位置获取接口
|
||||||
|
* 更新适配插件版本到1.2.29
|
||||||
|
|
||||||
|
## 2023-09-01
|
||||||
|
### Feature
|
||||||
|
* 微信压缩纹理工具Unity全版本支持
|
||||||
|
### Fixed
|
||||||
|
* 修复WXAssetBundle WXUnload后再次Load同个AssetBundle可能出现的异常
|
||||||
|
* 优化WXAssetBundle当UnityWebRequest异常时DownloadHandlerWXAssetBundle.assetBundle返回null,不再直接崩溃
|
||||||
|
* 更新适配插件版本到1.2.26
|
||||||
|
|
||||||
|
## 2023-08-24
|
||||||
|
### Feature
|
||||||
|
* 适配AudioClip.GetData
|
||||||
|
* 更新适配插件版本到1.2.25
|
||||||
|
### Fixed
|
||||||
|
* 修复旧版本安卓使用系统字体报错'SC Font not found in TTC File'
|
||||||
|
* 资源优化工具支持ASTC6*6格式
|
||||||
|
|
||||||
|
## 2023-08-18
|
||||||
|
### Feature
|
||||||
|
* 增加downloadfile(优化构建,支持创建类时传入success等会回调)
|
||||||
|
* 重构fs.readFile和fs.readFileSync,支持position和length参数
|
||||||
|
* 增加onMouseDown等PC点击事件
|
||||||
|
* 支持通过 `minigame/unity-namespace.js` 中函数 `isReportableHttpError` 忽略非重要网络异常上报,如心跳、数据分析接口
|
||||||
|
### Fixed
|
||||||
|
* 修复使用 `WXAssetBundle` 且请求了不同版本的资源时报错'readFileSync:fail no such file or directory'
|
||||||
|
* pc下载资源出现'still downloading xxx'弹框时用户可尝试重启小游戏
|
||||||
|
* 修复最佳实践检测工具首资源包是否压缩判断
|
||||||
|
|
||||||
|
## 2023-08-10
|
||||||
|
### Feature
|
||||||
|
* 增加隐私信息授权API(requirePrivacyAuthorize等)
|
||||||
|
* 增加API-requestSubscribeLiveActivity
|
||||||
|
* WXAssetBundle兼容WebGL浏览器环境(回退至UnityWebRequestAssetBundle模式运行)
|
||||||
|
|
||||||
|
## 2023-08-3
|
||||||
|
### Feature
|
||||||
|
更新内容:
|
||||||
|
* 首资源包压缩后在pc上运行的基础库版本限制调整,CDN加载(>=2.32.3),小游戏分包加载(2.29.2)
|
||||||
|
* 完善FileSystemManager
|
||||||
|
* Video支持修改属性
|
||||||
|
* development模式下,增加渲染性能检测日志
|
||||||
|
* 启动卡住时补充上报dependency
|
||||||
|
* 更新适配插件为1.2.23
|
||||||
|
### Fixed
|
||||||
|
* 修复微信系统字体加载时报错'SC Font not found in TTC File'
|
||||||
|
* 忽略unity分析的网络失败上报
|
||||||
|
* 修正网络个数和HTTP2.0检测
|
||||||
|
* 修复wx.onCompassChange
|
||||||
|
|
||||||
|
## 2023-07-27
|
||||||
|
### Feature
|
||||||
|
* 转换插件添加启动并行下载配置
|
||||||
|
* 详细缓存日志不写入日志管理器
|
||||||
|
* pc增加是否支持brotli压缩条件判断
|
||||||
|
### Fixed
|
||||||
|
* 修复系统字体未正常预下载
|
||||||
|
* PC微信因loadSubPackage无回调的容错处理
|
||||||
|
* 修复最佳实践检测工具首资源包brotli压缩后仍提示未gzip/br压缩
|
||||||
|
* 修复AudioSource修改pitch失效
|
||||||
|
* 修复PC端OnKeyDown回调报错
|
||||||
|
|
||||||
|
## 2023-07-20
|
||||||
|
### Feature
|
||||||
|
* 补充启动阶段关键日志
|
||||||
|
* 新增米大师接口RequestMidasPaymentGameItem
|
||||||
|
* 更新适配插件1.2.19
|
||||||
|
### Fixed
|
||||||
|
* 首资源包校验兼容微信纹理压缩工具
|
||||||
|
* 移除不用的纹理下载API
|
||||||
|
|
||||||
|
## 2023-07-12
|
||||||
|
### Feature
|
||||||
|
* 增加选项Il2CppCodeGeneration,默认为Il2CppCodeGeneration.OptimizeSize
|
||||||
|
* 启动期间校验首资源包大小
|
||||||
|
* 更新适配插件1.2.18
|
||||||
|
|
||||||
|
## 2023-07-05
|
||||||
|
### Feature
|
||||||
|
* iOS高性能模式自动GC策略(默认10s GC),可通过MiniGameConfig.asset-CompileOption-iOSAutoGCInterval调整间隔
|
||||||
|
* 支持对首资源包进行brotli压缩
|
||||||
|
### Fixed
|
||||||
|
* 性能面板数值显示优化
|
||||||
|
|
||||||
|
## 2023-06-29
|
||||||
|
### Feature
|
||||||
|
* 最佳实践预下载及网络下载检测项调整
|
||||||
|
* 增加OpenCustomerServiceChat
|
||||||
|
* 优化WXTouchInputOverride,在touchend时触发点击事件
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* 修复微信系统字体在iOS上部分字符缺失
|
||||||
|
* 修复微信系统字体在安卓上字形异常
|
||||||
|
* 修复导出webgl的兼容逻辑
|
||||||
|
|
||||||
|
## 2023-06-16
|
||||||
|
### Fixed
|
||||||
|
* 修复Unity压缩选项导致出包错误
|
||||||
|
* 调整默认打开窗口宽度
|
||||||
|
* 修复打包后分包插件提示: '当前项目模板过旧,请使用新版unity导出插件重新导出项目
|
||||||
|
|
||||||
|
## 2023-06-14
|
||||||
|
### Feature
|
||||||
|
* 移除对Node.js依赖;
|
||||||
|
* 优化面板,提供Instant Game AutoStreaming自动配置与上传。
|
||||||
|
* 增加API getlogmanager/getrealtimelogmanager
|
||||||
|
### Fixed
|
||||||
|
* iOS高性能最低支持版本调整
|
||||||
|
* 微信系统字体预载bug修复
|
||||||
|
* 音频FMOD导出适配
|
||||||
|
|
||||||
|
## 2023-06-12
|
||||||
|
### Fixed
|
||||||
|
* plugins目录增加link.xml, 避免动态创建的类型被裁剪(如litjson解析)
|
||||||
|
|
||||||
|
## 2023-06-7
|
||||||
|
### Feature
|
||||||
|
* UnityWebRequest支持timeout属性
|
||||||
|
* 二次启动最佳实践检测逻辑调整
|
||||||
|
### Fixed
|
||||||
|
* 修复Unity 2022引擎版本导出Web版本的模板
|
||||||
|
* dev版本不处理symbols数据
|
||||||
|
* 修复微信系统字体多行重写的问题
|
||||||
|
* 修复微信系统字体在iOS系统部分缺失符号
|
||||||
|
|
||||||
|
## 2023-06-1
|
||||||
|
### Feature
|
||||||
|
* 支持Unity 2022引擎版本导出微信小游戏
|
||||||
|
* 优化framework胶水层获取Canvas与宽高属性的性能损耗
|
||||||
|
* ProfileStats性能面板增加FrameTime
|
||||||
|
* 支持WASM生成external symbols优化,无需Node支持
|
||||||
|
* 增加API CreateFeedbackButton
|
||||||
|
* 广告API customAd增加onHide
|
||||||
|
* 更新适配插件1.2.11
|
||||||
|
### Fixed
|
||||||
|
* 修复Android首次退出小游戏后会继续播放的问题
|
||||||
|
* DoExport增加返回值方便第三方工具集成
|
||||||
|
* innerAudio onError增加回调信息
|
||||||
|
|
||||||
|
## 2023-05-24
|
||||||
|
### Feature
|
||||||
|
* 更新适配插件1.2.5
|
||||||
|
* 优化开发版、体验版小游戏支持最佳实践检测工具
|
||||||
|
### Fixed
|
||||||
|
* TextureEditor插件目录不参与编译
|
||||||
|
|
||||||
|
## 2023-05-22
|
||||||
|
### Feature
|
||||||
|
* 支持使用微信字体,使用WX.GetWXFont获取使用系统字体
|
||||||
|
* 支持WXAssetBundle,替换Unity AssetBundle以减少内存使用,请参阅文档[使用AssetBundle](Design/UsingAssetBundle.md)其中WXAssetBundle部分
|
||||||
|
* 开发版、体验版小游戏支持最佳实践检测,请参阅[最佳实践检测工具](Design/PerformanceMonitor.md)
|
||||||
|
* WX-WASM-SDK-V2** 版本使用新的目录结构为WX-WASM-SDK-V2,更新需手动删除`Assets/WX-WASM-SDK` (如有二次修改请备份)。若新版本出现异常,可使用旧版本备份包 [SDKv1 Unity插件](https://github.com/wechat-miniprogram/minigame-unity-webgl-transform/blob/main/tools/minigame.202305172131.unitypackage) 版本包进行回退
|
||||||
|
* 适配插件版本号更新为1.2.3
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* 对齐最新[小游戏基础库2.30.4协议](https://github.com/wechat-miniprogram/minigame-api-typings/blob/master/types/wx/lib.wx.api.d.ts)
|
||||||
|
部分类、接口名变更,原 Callback 命名更替为 Listener 如:
|
||||||
|
```
|
||||||
|
OnKeyboardInputCallbackResult -> OnKeyboardInputListenerResult
|
||||||
|
```
|
||||||
|
* 修正调用参数类名的大小写,例如:
|
||||||
|
```
|
||||||
|
getGameClubDataOption -> GetGameClubDataOption
|
||||||
|
openPageOption -> OpenPageOption
|
||||||
|
```
|
||||||
|
|
||||||
|
## 2023-04-26
|
||||||
|
### Changed
|
||||||
|
* 更新启动插件1.1.19
|
||||||
|
## 2023-03-31
|
||||||
|
### Feature
|
||||||
|
* 优化启动插件内存占用
|
||||||
|
## 2023-02-22
|
||||||
|
### Feature
|
||||||
|
* 支持开通高性能模式的游戏禁止回退成普通模式运行,通过`disableHighPerformanceFallback`修改
|
||||||
|
|
||||||
|
## 2023-02-15
|
||||||
|
### Fixed
|
||||||
|
* 微信压缩纹理工具修复自定义路径导出
|
||||||
|
* 微信压缩纹理工具优化增量逻辑
|
||||||
|
* fmod转换适配develop build
|
||||||
|
|
||||||
|
## 2023-02-9
|
||||||
|
### Feature
|
||||||
|
* 微信压缩纹理新增API可供开发者调用接入自定义自动转化能力
|
||||||
|
* 微信压缩纹理工具内核优化
|
||||||
|
* 微信压缩纹理工具对WebGL2.0 Gamma Linear模式兼容(Beta)
|
||||||
|
### Fixed
|
||||||
|
* WebGL2.0模式下,修复Android的内存异常上涨
|
||||||
|
|
||||||
|
## 2023-01-17
|
||||||
|
### Fixed
|
||||||
|
* iOS高性能模式下,touch identifier始终返回正整数
|
||||||
|
|
||||||
|
## 2023-01-17
|
||||||
|
### Feature
|
||||||
|
* 适配Unity 2020版本导出的_JS_Sound_IsStopped
|
||||||
|
* 适配插件版本升级到1.1.12
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* WebGL2.0模式下,修复iOS普通模式的渲染异常
|
||||||
|
* WebGL2.0模式下,修复iOS高性能模式进程内存过大的问题
|
||||||
|
* 修复fmod相关的适配问题
|
||||||
|
* 修复微信压缩纹理DXT占位符当初修复eslint引发的无法替换问题
|
||||||
|
|
||||||
|
|
||||||
|
## 2023-01-04
|
||||||
|
### Feature
|
||||||
|
* 增加`WX.ReportScene`接口,用于游戏自定义场景上报,可参见github文档,或mp文档 https://developers.weixin.qq.com/minigame/dev/guide/performance/perf-action-start-reportScene.html
|
||||||
|
* 增加`Rmdir`及`RmdirSync`接口
|
||||||
|
* 增加`GetCachePath`接口
|
||||||
|
* 提供插件缓存路径`PluginCachePath`
|
||||||
|
* 性能面板增加ProfilingMemory Dump功能,使用请查阅:https://github.com/wechat-miniprogram/minigame-unity-webgl-transform/blob/main/Design/UsingMemoryProfiler.md
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* 修复偶现读取空文件的bug
|
||||||
|
|
||||||
|
## 2022-12-28
|
||||||
|
### Feature
|
||||||
|
* 增加ProfilingMemory功能,使用请阅读相关文档
|
||||||
|
* C# SDK支持API chooseMedia
|
||||||
|
* Snapshot支持,Unity 2021编译参数增加_emscripten_stack_get_base,_emscripten_stack_get_end
|
||||||
|
* iOS高性能模式2.29.1支持BufferURL
|
||||||
|
### Fixed
|
||||||
|
* InnerAudio播放音频中文文件名修复
|
||||||
|
* 兼容iOS 8.0.31普通模式UnityAudio短音频适配问题
|
||||||
|
|
||||||
|
## 2022-12-22
|
||||||
|
### Fixed
|
||||||
|
* 修复UnityPlugin v1.1.5导致特性开关和分包patch逻辑失效
|
||||||
|
|
||||||
|
## 2022-12-21
|
||||||
|
### Feature
|
||||||
|
* 排行榜能力优化
|
||||||
|
* 视频透明时全局清理标记
|
||||||
|
* 移除markdown插件
|
||||||
|
* 微信压缩纹理增加支持ASTC6*6格式
|
||||||
|
* 适配插件版本升级到1.1.5
|
||||||
|
|
||||||
|
## 2022-12-7
|
||||||
|
### Feature
|
||||||
|
* 支持指定Node路径,MiniGameConfig.asset-CompileOption-CustomNodePath指定自定义node安装目录
|
||||||
|
* 编译选项增加CleanBuild(仅支持2021以上版本)
|
||||||
|
* 适配插件版本升级到1.1.3
|
||||||
|
### Fixed
|
||||||
|
* 修复UnityAudio适配InnerAudio时,静音状态对长音频在切换场景后无效的问题
|
||||||
|
|
||||||
|
## 2022-11-30
|
||||||
|
### Feature
|
||||||
|
* 微信压缩纹理支持WebGL2.0
|
||||||
|
* 微信压缩纹理对.svn .git目录忽略
|
||||||
|
|
||||||
|
## 2022-11-23
|
||||||
|
### Feature
|
||||||
|
* 导出增加sbrk函数,2021无需profiling-memory查看DynamicMemory
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* UDPClient使用connect+write, 修复send接口性能问题
|
||||||
|
|
||||||
|
## 2022-11-17
|
||||||
|
### Feature
|
||||||
|
* 微信压缩纹理优化,支持ASTC使用非4倍数尺寸
|
||||||
|
* 新增录屏接口功能
|
||||||
|
|
||||||
|
## 2022-11-9
|
||||||
|
### Feature
|
||||||
|
* Unity Audio压缩纹理,支持小游戏InnerAudio
|
||||||
|
* 适配插件版本升级到1.1.2
|
||||||
|
### Fixed
|
||||||
|
* 修复png资源Windows系统下缓存异常
|
||||||
|
|
||||||
|
## 2022-10-27
|
||||||
|
### Feature
|
||||||
|
压缩纹理回退使用png时也支持缓存逻辑
|
||||||
|
### Fixed
|
||||||
|
使用node命令时同时查找默认安装路径
|
||||||
|
修复Win7下使用Unity2021生成symbols时导致的卡死问题
|
||||||
|
|
||||||
|
## 2022-10-20
|
||||||
|
### Feature
|
||||||
|
* 高性能模式HTTP网络切换为小游戏接口
|
||||||
|
* 适配插件版本升级到1.0.97
|
||||||
|
|
||||||
|
## 2022-10-12
|
||||||
|
### Feature
|
||||||
|
* 微信压缩纹理工具支持ASTC文件读取,并支持不同的块大小(需Unity2021版本)
|
||||||
|
* 适配插件版本升级到1.0.95
|
||||||
|
### Fixed
|
||||||
|
* 文件缓存清理逻辑优化
|
||||||
|
|
||||||
|
## 2022-9-28
|
||||||
|
### Feature
|
||||||
|
* InnerAudio支持持久化文件存储(当音频路径加入到缓存目录时)
|
||||||
|
* 适配插件版本升级到1.0.94
|
||||||
|
### Fixed
|
||||||
|
* 修复Unity2021下使用微信压缩纹理工具,在iOS普通模式无法正常渲染的问题
|
||||||
|
* 修复WebGL2导出时的胶水层异常
|
||||||
|
|
||||||
|
## 2022-9-21
|
||||||
|
### Feature
|
||||||
|
* 增加游戏圈接口openPageOption, getGameClubData
|
||||||
|
* FileSystemManager增加stat接口
|
||||||
|
### Fixed
|
||||||
|
* FileSystemManager异步读取文件,填写encoding时没有返回数据
|
||||||
|
|
||||||
|
## 2022-9-13
|
||||||
|
### Feature
|
||||||
|
* 微信压缩纹理工具支持bundle级别修改压缩纹理等级
|
||||||
|
* Unity2021 IL2CPP默认选项更改为SIZE减少代码包体
|
||||||
|
|
||||||
|
## 2022-9-8
|
||||||
|
### Fixed
|
||||||
|
* 启动封面拉伸
|
||||||
|
* pc小游戏下载路径处理
|
||||||
|
|
||||||
|
### Feature
|
||||||
|
* 增加动态修改DATA_CDN的C#接口`SetDataCDN`,以及js接口`GameGlobal.manager.setDataCDN`
|
||||||
|
* 增加动态修改预下载列表的C#接口`SetPreloadList`,以及js接口`GameGlobal.manager.setPreloadList`
|
||||||
|
|
||||||
|
## 2022-9-7
|
||||||
|
### Fixed
|
||||||
|
* 修复PlayerPref在Unity Editor中的兼容
|
||||||
|
* 修复WXWriteBinFileSync返回值的处理
|
||||||
|
|
||||||
|
## 2022-8-31
|
||||||
|
### Fixed
|
||||||
|
* 调整WXTouchOverride更新逻辑为LateUpdate, 补充TouchCancel事件
|
||||||
|
* 修复资源量较大时,压缩纹理工具替换过程的卡死问题
|
||||||
|
|
||||||
|
## 2022-8-26
|
||||||
|
### Feature
|
||||||
|
* HTTP下载时,文件缓存与规则判定效率优化
|
||||||
|
* 压缩纹理对于不支持的引擎版本增加提示
|
||||||
|
* 插件特性动态开关
|
||||||
|
|
||||||
|
## 2022-8-17
|
||||||
|
### Feature
|
||||||
|
* WASM代码未发生变化时不在进行压缩,加快转换速度
|
||||||
|
* 压缩纹理支持剔除功能, 增加详细日志输出
|
||||||
|
* 微信开发者工具支持提示插件审核指引
|
||||||
|
|
||||||
|
## 2022-8-11
|
||||||
|
### Fixed
|
||||||
|
* 启动视频样式错误
|
||||||
|
|
||||||
|
## 2022-8-10
|
||||||
|
### Feature
|
||||||
|
* 支持自定义启动封面样式
|
||||||
|
* pc微信支持启动封面
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* 安卓8.0.25启动异常
|
||||||
|
* 写缓存时未删除同名旧缓存
|
||||||
|
* 使用Date.now替换performence.now以提升性能
|
||||||
|
* 压缩纹理工具支持特殊字符资源
|
||||||
|
|
||||||
|
## 2022-7-28
|
||||||
|
### Feature
|
||||||
|
* 增加UDP接口能力
|
||||||
|
## 2022-7-20
|
||||||
|
### Feature
|
||||||
|
* 增加重启小游戏的API支持
|
||||||
|
### Fixed
|
||||||
|
* 纹理压缩并行下载完成未正常显示
|
||||||
|
### Feature
|
||||||
|
* 设置启动时是否自动检查小游戏版本更新
|
||||||
|
## 2022-7-14
|
||||||
|
### Fixed
|
||||||
|
* 转换面板的最大内存提示与指引优化
|
||||||
|
* WebGL导出失败时不进行小游戏转换
|
||||||
|
* 非playing状态调用WX接口的告警提示
|
||||||
|
## 2022-7-1
|
||||||
|
### Fixed
|
||||||
|
* 开发阶段没显示耗时弹框
|
||||||
|
* 21.3unity服务器错误且无跨域头导致报错
|
||||||
|
## 2022-6-30
|
||||||
|
### Fixed
|
||||||
|
* 压缩纹理工具逻辑异常,增加进度条
|
||||||
|
* 完善限帧率接口SetPreferredFramesPerSecond
|
||||||
|
|
||||||
|
## 2022-6-28
|
||||||
|
### Feature
|
||||||
|
* 导出插件的brotli压缩不依赖python环境
|
||||||
|
### Fixed
|
||||||
|
* 压缩纹理工具独立命名,避免有NuGet产生dll冲突
|
||||||
|
|
||||||
|
## 2022-6-18
|
||||||
|
### Fixed
|
||||||
|
* 小游戏模板错误
|
||||||
|
## 2022-6-16
|
||||||
|
### Feature
|
||||||
|
* 支持自定义可缓存文件及可清理文件
|
||||||
|
* 优化缓存目录统计
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* 21.3unity在iOS上网络报错
|
||||||
|
## 2022-6-13
|
||||||
|
### Fixed
|
||||||
|
* `RemoveFile`参数转字符串
|
||||||
|
* 8.0.16安卓worker写文件报错
|
||||||
|
## 2022-6-8
|
||||||
|
### Feature
|
||||||
|
* 提供Loader启动数据
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* 修复是否需要下载代码包上报
|
||||||
|
* 21.3版本Unity webrequest设置请求头;注册进度事件
|
||||||
|
## 2022-6-7
|
||||||
|
### Feature
|
||||||
|
* 增加MemoryProfiler,开发阶段分析内存
|
||||||
|
|
||||||
|
## 2022-6-1
|
||||||
|
### Feature
|
||||||
|
* 使用worker做文件写入临时绕过安卓文件写入多时造成卡顿
|
||||||
|
## 2022-5-31
|
||||||
|
### Feature
|
||||||
|
* 暴露插件进度事件
|
||||||
|
## 2022-5-30
|
||||||
|
### Fixed
|
||||||
|
* pc小游戏首包资源通过分包加载时读取失败
|
||||||
|
## 2022-5-26
|
||||||
|
### Changed
|
||||||
|
* 默认关闭纹理缓存,影响安卓帧率
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* 修复21.3替换规则
|
||||||
|
## 2022-5-24
|
||||||
|
### Feature
|
||||||
|
* 增加对21.3版本unity支持
|
||||||
|
* MiniGameConfig.asset增加不常用配置入口
|
||||||
|
## 2022-4-29
|
||||||
|
### Fixed
|
||||||
|
* 通过分包加载资源时读取bug
|
||||||
|
|
||||||
|
## 2022-4-26
|
||||||
|
### Fixed
|
||||||
|
* 带`dataFileSubPrefix`时iOS首包资源下载bug
|
||||||
|
|
||||||
|
### Feature
|
||||||
|
* 游戏异常时增加重启游戏按钮
|
||||||
|
* 检查是否32位微信导致无法进入游戏
|
||||||
|
* 修正URL中非法路径
|
||||||
|
## 2022-4-24
|
||||||
|
### Fixed
|
||||||
|
更新独立域插件版本`1.0.60`
|
||||||
|
* 达缓存上限时未正常清理旧缓存
|
||||||
|
* 1.0.58版本插件iOS报错
|
||||||
|
## 2022-4-22
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
更新独立域插件版本`1.0.58`
|
||||||
|
* 预下载问题路径bug
|
||||||
|
* 不支持webgl2时提示
|
||||||
|
### Feature
|
||||||
|
* 增加清理指定文件接口`RemoveFile`
|
||||||
|
* 是否缓存纹理开关
|
||||||
|
|
||||||
|
## 2022-4-18
|
||||||
|
### Feature
|
||||||
|
* 修改文件删除接口使用方法`CleanFileCache`,`CleanAllFileCache`
|
||||||
|
## 2022-4-14
|
||||||
|
### Feature
|
||||||
|
* 增加清除文件缓存接口`CleanFileCache`
|
||||||
|
|
||||||
|
## 2022-4-11
|
||||||
|
### Changed
|
||||||
|
* 2021版本调整为需要手动分离symbols,由于Unity自身产生的symbols存在缺失问题
|
||||||
|
* 增加CleaStreamingAssets选项,控制是否清理webgl/StreamingAssets
|
||||||
|
|
||||||
|
## 2022-3-29
|
||||||
|
### Changed
|
||||||
|
* 更新插件版本为1.0.53
|
||||||
|
* `streamingUrlSubPath`支持传自定义拼接到streamingcdn后面的路径
|
||||||
|
* iOS不支持webgl2时提示
|
||||||
|
|
||||||
|
## 2022-3-22
|
||||||
|
### Changed
|
||||||
|
* 更新压缩纹理工具使用方式
|
||||||
|
|
||||||
|
## 2022-3-7
|
||||||
|
### Changed
|
||||||
|
* 更新独立域插件版本为1.0.51
|
||||||
|
* 预载列表按照填写顺序生成
|
||||||
|
* Unity2021不再提示分离symbols,2021.2.11以后版本已支持
|
||||||
|
* Pointer_stringify导致的浏览器告警
|
||||||
|
|
||||||
|
## 2022-3-7
|
||||||
|
### Changed
|
||||||
|
* 更新独立域插件版本为1.0.50
|
||||||
|
|
||||||
|
## 2022-2-17
|
||||||
|
### Changed
|
||||||
|
* 更新独立域插件版本
|
||||||
|
* 增加日志输出
|
||||||
|
* 限帧时禁用后台执行Loop
|
||||||
|
|
||||||
|
## 2022-2-15
|
||||||
|
### Fixed
|
||||||
|
* UnityAudio循环播放修复
|
||||||
|
* 2021版本修改为默认使用External Symbols(需升级Unity到2021.2.11以上)
|
||||||
|
* PlayerSettings默认去除"Run In Background"
|
||||||
|
|
||||||
|
## 2022-2-14
|
||||||
|
### Feature
|
||||||
|
* 支持PC端DXT5压缩纹理
|
||||||
|
|
||||||
|
## 2022-2-11
|
||||||
|
### Feature
|
||||||
|
* 调整部分API
|
||||||
|
* 支持webgl2.0的压缩纹理
|
||||||
|
|
||||||
|
## 2022-1-26
|
||||||
|
### Feature
|
||||||
|
* 新增API
|
||||||
|
* 修复API中不确定类型的数据可能导致类型转换失败的问题
|
||||||
|
|
||||||
|
## 2022-1-25
|
||||||
|
### Fixed
|
||||||
|
* 修复Login方法,默认不传timeout,默认超时为1000ms,容易失败的问题
|
||||||
|
|
||||||
|
## 2022-1-24
|
||||||
|
### Feature
|
||||||
|
* 兼容浏览器环境,修复部分API问题
|
||||||
|
|
||||||
|
## 2022-1-21
|
||||||
|
### Feature
|
||||||
|
* 新增WXCleanAllFileCache接口,用于清理所有文件缓存
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
* 独立域插件版本更新到1.0.46,包含以下修改
|
||||||
|
1. 自动清理存量旧文件
|
||||||
|
2. 达到缓存上限时清理更多空间,具体值可通过minigame/unity-namespace.js中releaseMemorySize修改
|
||||||
|
3. 上报unity版本和转换插件版本
|
||||||
|
4. 支持以文件名全匹配的方式忽略缓存
|
||||||
|
5. 插件错误报实时日志
|
||||||
|
6. pc小游戏兼容
|
||||||
|
|
||||||
|
## 2022-1-20
|
||||||
|
|
||||||
|
### Feature
|
||||||
|
* 新增API,旧API批量重命名,用法保持不变
|
||||||
|
|
||||||
|
## 2022-1-17
|
||||||
|
### Fixed
|
||||||
|
* 同名文件缓存未清理
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
* 版本限制条件更新
|
||||||
|
|
||||||
|
## 2022-1-13
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* Unity Audio能力适配, 不支持设备兼容处理; 退后台暂停播放音频; 性能提升
|
||||||
|
|
||||||
|
## 2022-1-7
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* Unity Audio能力适配
|
||||||
|
* Unity Input Touch能力适配
|
||||||
|
|
||||||
|
## 2021-12-31
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* 调整为默认不打开性能面板,单独提供WX.OpenProfileStats
|
||||||
|
|
||||||
|
## 2021-12-30
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* 修复引擎初始化失败后依然回调calledMainCb导致统计问题
|
||||||
|
* 修复2021版本abort时执行WXUncaughtException
|
||||||
|
* 补充小程序框架异常时上报实时日志
|
||||||
|
|
||||||
|
## 2021-12-20
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* 2021 dev 运行报错(randomDevices替换)
|
||||||
|
* 跳转小游戏接口错误
|
||||||
|
* 缓存大小为0,AssetBundle重试失败问题
|
||||||
|
|
||||||
|
## 2021-12-16
|
||||||
|
|
||||||
|
### Feature
|
||||||
|
* 开发、体验版本增加性能面板
|
||||||
|
|
||||||
|
## 2021-12-10
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* 修复独立域插件未编译子包bug
|
||||||
|
|
||||||
|
## 2021-12-06
|
||||||
|
|
||||||
|
### Feature
|
||||||
|
* WebGL2.0 增加适配,该特性处于测试阶段
|
||||||
|
* 2021增加embedded symbols分离
|
||||||
|
* 增加error日志回调
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* 2021 dev 运行报错
|
||||||
|
|
||||||
|
## 2021-12-02
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* dev build报错
|
||||||
|
* 设备方向无法选中"LandscapeLeft", "LandscapeRight"
|
||||||
|
|
||||||
|
## 2021-11-30
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
* 导出配置调整:统一资源CDN路径配置;配置顺序调整。
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* 低版本C#导致markdownviewer报错'interpolated strings' cannot be used.
|
||||||
|
|
||||||
|
## 2021-11-19
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* 更新小游戏模板
|
||||||
|
|
||||||
|
## 2021-11-18
|
||||||
|
### Feature
|
||||||
|
增加bundle相关导出配置
|
||||||
|
|
||||||
|
* 自定义bundle名中hash长度:用于缓存控制,默认32
|
||||||
|
* 自定义需缓存的路径标识符:下载路径命中标识符时会自动缓存本次下载文件。
|
||||||
|
* 忽略路径下指定类型文件:路径命中标识符时,过滤不需缓存的文件类型。
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* markdownviewer可能出现guiskin引用丢失
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
* 更新小游戏模板
|
||||||
|
|
||||||
|
## 2021-10-26
|
||||||
|
### Feature
|
||||||
|
* 增加部分文件操作API
|
||||||
|
* 压缩纹理替换优化,提升转换速度
|
||||||
|
|
||||||
|
## 2021-10-09
|
||||||
|
### Feature
|
||||||
|
* 增加Unity2020、2021版本支持
|
||||||
|
|
||||||
|
|
||||||
|
## 2021-09-23
|
||||||
|
### Fixed
|
||||||
|
* 程序crash时触发用户反馈入口
|
||||||
|
|
||||||
|
|
||||||
|
## 2021-09-22
|
||||||
|
|
||||||
|
### Feature
|
||||||
|
* 支持短音频的播放API(WX.ShortAudioPlayer),更接近Unity的API调用方式
|
||||||
|
|
||||||
|
### Feature
|
||||||
|
* 当禁用异常时,程序即将crash之前弹出用户反馈入口,并自动提交用户反馈日志、JS Error与实时日志
|
||||||
|
|
||||||
|
### Feature
|
||||||
|
* 编译选项增加"Profiling Funcs", 仅调试问题时勾选此选项时,编译代码将含有函数名,代码体积变大
|
||||||
|
|
||||||
|
## 2021-09-14
|
||||||
|
|
||||||
|
### Feature
|
||||||
|
* 支持PlayerPrefs优化,支持配置key
|
||||||
|
### Fixed
|
||||||
|
* 修复排行榜内存增长问题
|
||||||
|
|
||||||
|
## 2021-09-06
|
||||||
|
|
||||||
|
### Feature
|
||||||
|
* 支持导出时配置封面图
|
||||||
|
|
||||||
|
## 2021-8-20
|
||||||
|
|
||||||
|
### Feature
|
||||||
|
* 支持创建视频
|
||||||
|
|
||||||
|
## 2021-8-12
|
||||||
|
|
||||||
|
### Feature
|
||||||
|
* 修复IOS下音频被系统打断后的恢复问题
|
||||||
|
* 支持客服消息
|
||||||
|
|
||||||
|
## 2021-8-10
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
* 小游戏项目模板更新
|
||||||
|
* 独立域插件更新为1.0.27。优化文件删除;修复资源预载bug
|
||||||
|
|
||||||
|
## 2021-08-05
|
||||||
|
|
||||||
|
### Feature
|
||||||
|
* 音频支持获取播放状态
|
||||||
|
* 非POT图也支持延迟加载
|
||||||
|
|
||||||
|
## 2021-08-04
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* 独立域插件版本更新为1.0.24,修复若干问题
|
||||||
|
|
||||||
|
## 2021-08-02
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* 独立域插件更新1.0.20,修复首包资源下载异常
|
||||||
|
* 更新小游戏项目模板
|
||||||
|
|
||||||
|
## 2021-08-01
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
* 小游戏项目模板更新
|
||||||
|
|
||||||
|
## 2021-07-31
|
||||||
|
|
||||||
|
### Feature
|
||||||
|
* 增加预下载并发数控制接口WX.SetConcurrent
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
* 小游戏项目模板变更
|
||||||
|
|
||||||
|
## 2021-07-26
|
||||||
|
### Feature
|
||||||
|
* 增加预下载猎豹配置,自动从导出目录webgl/StreamingAssets查找资源并填充到game.js的Preload列表
|
||||||
|
|
||||||
|
## 2021-07-26
|
||||||
|
### Feature
|
||||||
|
* 支持文件二进制读写(同步和异步)
|
||||||
|
* 压缩纹理替换速度优化
|
||||||
|
|
||||||
|
## 2021-07-20
|
||||||
|
### Fixed
|
||||||
|
* 独立域插件版本升级为1.0.16,修复初始上报时机
|
||||||
|
|
||||||
|
## 2021-07-19
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
* 优化插件更新提示
|
||||||
|
|
||||||
|
## 2021-07-13
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* 独立域插件版本升级为1.0.14,修复了一些bug
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
* 导出插件只提示更新,不自动下载
|
||||||
|
|
||||||
|
## 2021-07-09
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* 独立域插件版本升级为1.0.13,修复了一些bug
|
||||||
|
|
||||||
|
## 2021-07-02
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* 微信版本或基础库版本过低时`WXWebAssembly`未定义,未弹框提示更新客户端
|
||||||
|
|
||||||
|
## 2021-06-30
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* 压缩纹理兼容flare
|
||||||
|
|
||||||
|
### Feature
|
||||||
|
|
||||||
|
* 支持游戏恢复到前台后自动播放,默认开启分享
|
||||||
|
|
||||||
|
## 2021-06-29
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* 云测试设置UI框架导致editor运行错误
|
||||||
|
|
||||||
|
### Feature
|
||||||
|
|
||||||
|
* 引入[UnityMarkdownViewer](https://github.com/gwaredd/UnityMarkdownViewer)在inspector面板预览changelog
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
|
||||||
|
* 移除转换小游戏面板中`游戏内存大小`字段: 从Unity 2019开始已不支持设置`PlayerSettings.WebGL.memorySize`
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
* 资源优化工具代码添加namespace, 避免与游戏代码冲突
|
||||||
|
|
||||||
|
### Others
|
||||||
|
|
||||||
|
独立域插件更新为(1.0.11)
|
||||||
|
|
||||||
|
* `.untiy3d`拓展名文件视为bundle文件,可做缓存。
|
||||||
|
* 根据是否调试模式控制日志输出,规则为: 若为开发版, enableDebugLog=false且为调试模式时输出详细日志;其他版本, 开启调试模式则输出详细日志
|
||||||
|
|
||||||
|
## 2021-06-10
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* 独立域插件更新(1.0.10): 修复安卓分片读取包内资源内存越界
|
7
d2/Assets/WX-WASM-SDK-V2/CHANGELOG.md.meta
Normal file
7
d2/Assets/WX-WASM-SDK-V2/CHANGELOG.md.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: eaeb9f1caf77b43d2922adf83a728e8b
|
||||||
|
TextScriptImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
d2/Assets/WX-WASM-SDK-V2/Editor.meta
Normal file
8
d2/Assets/WX-WASM-SDK-V2/Editor.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7005e8fdf50a2d040938fd5bdb1f2a15
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli.meta
Normal file
8
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 38e37740d839f9b49a78749903c327c9
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
19
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/LICENSE.txt
Normal file
19
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/LICENSE.txt
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
Copyright (c) 2009, 2010, 2013-2016 by the Brotli Authors.
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
7
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/LICENSE.txt.meta
Normal file
7
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/LICENSE.txt.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 094d36fd8b54c4c3d98d21b57d92ae26
|
||||||
|
TextScriptImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
2
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/commits.txt
Normal file
2
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/commits.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
https://github.com/Unity-Technologies/brotli
|
||||||
|
359ceef04a4eae97cb8a161c4b768fd639eef98b
|
7
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/commits.txt.meta
Normal file
7
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/commits.txt.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 5aaeb4910866f4388a86efc2ac5bde76
|
||||||
|
TextScriptImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/linux_x86_64.meta
Normal file
8
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/linux_x86_64.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a546f2fdd93835742b0a972f51dc79cc
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
BIN
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/linux_x86_64/brotli
Normal file
BIN
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/linux_x86_64/brotli
Normal file
Binary file not shown.
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c7d34b53fefa24bf5b0ce2914fc60ad8
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Binary file not shown.
@ -0,0 +1,27 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 26999bc34f7d1b3448cb3f93c500c1b6
|
||||||
|
PluginImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
iconMap: {}
|
||||||
|
executionOrder: {}
|
||||||
|
defineConstraints: []
|
||||||
|
isPreloaded: 0
|
||||||
|
isOverridable: 1
|
||||||
|
isExplicitlyReferenced: 0
|
||||||
|
validateReferences: 1
|
||||||
|
platformData:
|
||||||
|
- first:
|
||||||
|
Any:
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings: {}
|
||||||
|
- first:
|
||||||
|
Editor: Editor
|
||||||
|
second:
|
||||||
|
enabled: 1
|
||||||
|
settings:
|
||||||
|
DefaultValueInitialized: true
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Binary file not shown.
@ -0,0 +1,27 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 84106878858c34f4495d07c9caf95b2b
|
||||||
|
PluginImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
iconMap: {}
|
||||||
|
executionOrder: {}
|
||||||
|
defineConstraints: []
|
||||||
|
isPreloaded: 0
|
||||||
|
isOverridable: 1
|
||||||
|
isExplicitlyReferenced: 0
|
||||||
|
validateReferences: 1
|
||||||
|
platformData:
|
||||||
|
- first:
|
||||||
|
Any:
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings: {}
|
||||||
|
- first:
|
||||||
|
Editor: Editor
|
||||||
|
second:
|
||||||
|
enabled: 1
|
||||||
|
settings:
|
||||||
|
DefaultValueInitialized: true
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/macos.meta
Normal file
8
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/macos.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2f1dd2a025bbd2c48b5cfdef2bebf115
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
BIN
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/macos/brotli
Normal file
BIN
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/macos/brotli
Normal file
Binary file not shown.
7
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/macos/brotli.meta
Normal file
7
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/macos/brotli.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 74b4e5c821cda4b7d8f401d7935a892e
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Binary file not shown.
@ -0,0 +1,27 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 894a22bfc94a12543b3d68ec88cb5161
|
||||||
|
PluginImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
iconMap: {}
|
||||||
|
executionOrder: {}
|
||||||
|
defineConstraints: []
|
||||||
|
isPreloaded: 0
|
||||||
|
isOverridable: 1
|
||||||
|
isExplicitlyReferenced: 0
|
||||||
|
validateReferences: 1
|
||||||
|
platformData:
|
||||||
|
- first:
|
||||||
|
Any:
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings: {}
|
||||||
|
- first:
|
||||||
|
Editor: Editor
|
||||||
|
second:
|
||||||
|
enabled: 1
|
||||||
|
settings:
|
||||||
|
DefaultValueInitialized: true
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
BIN
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/macos/libbrotlienc.dylib
Normal file
BIN
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/macos/libbrotlienc.dylib
Normal file
Binary file not shown.
@ -0,0 +1,27 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 71bd70f02cc3e024492b5cf4e7fe001a
|
||||||
|
PluginImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
iconMap: {}
|
||||||
|
executionOrder: {}
|
||||||
|
defineConstraints: []
|
||||||
|
isPreloaded: 0
|
||||||
|
isOverridable: 1
|
||||||
|
isExplicitlyReferenced: 0
|
||||||
|
validateReferences: 1
|
||||||
|
platformData:
|
||||||
|
- first:
|
||||||
|
Any:
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings: {}
|
||||||
|
- first:
|
||||||
|
Editor: Editor
|
||||||
|
second:
|
||||||
|
enabled: 1
|
||||||
|
settings:
|
||||||
|
DefaultValueInitialized: true
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/win_x86_64.meta
Normal file
8
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/win_x86_64.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: baa16af42d72f074d8360ac9b3138a66
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
BIN
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/win_x86_64/brotli.exe
Normal file
BIN
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/win_x86_64/brotli.exe
Normal file
Binary file not shown.
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 14077bb4dfcdf487aa222261b4719a0e
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Binary file not shown.
@ -0,0 +1,27 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 11a25072934d7774980b8bb4ed24b59c
|
||||||
|
PluginImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
iconMap: {}
|
||||||
|
executionOrder: {}
|
||||||
|
defineConstraints: []
|
||||||
|
isPreloaded: 0
|
||||||
|
isOverridable: 1
|
||||||
|
isExplicitlyReferenced: 0
|
||||||
|
validateReferences: 1
|
||||||
|
platformData:
|
||||||
|
- first:
|
||||||
|
Any:
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings: {}
|
||||||
|
- first:
|
||||||
|
Editor: Editor
|
||||||
|
second:
|
||||||
|
enabled: 1
|
||||||
|
settings:
|
||||||
|
DefaultValueInitialized: true
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Binary file not shown.
@ -0,0 +1,27 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b18f4be17de93e246a9af4379ecb2650
|
||||||
|
PluginImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
iconMap: {}
|
||||||
|
executionOrder: {}
|
||||||
|
defineConstraints: []
|
||||||
|
isPreloaded: 0
|
||||||
|
isOverridable: 1
|
||||||
|
isExplicitlyReferenced: 0
|
||||||
|
validateReferences: 1
|
||||||
|
platformData:
|
||||||
|
- first:
|
||||||
|
Any:
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings: {}
|
||||||
|
- first:
|
||||||
|
Editor: Editor
|
||||||
|
second:
|
||||||
|
enabled: 1
|
||||||
|
settings:
|
||||||
|
DefaultValueInitialized: true
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
BIN
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/win_x86_64/msvcp140.dll
Normal file
BIN
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/win_x86_64/msvcp140.dll
Normal file
Binary file not shown.
@ -0,0 +1,27 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 482c84c1110074e5295b51734fa3053b
|
||||||
|
PluginImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
iconMap: {}
|
||||||
|
executionOrder: {}
|
||||||
|
defineConstraints: []
|
||||||
|
isPreloaded: 0
|
||||||
|
isOverridable: 0
|
||||||
|
isExplicitlyReferenced: 0
|
||||||
|
validateReferences: 1
|
||||||
|
platformData:
|
||||||
|
- first:
|
||||||
|
Any:
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings: {}
|
||||||
|
- first:
|
||||||
|
Editor: Editor
|
||||||
|
second:
|
||||||
|
enabled: 1
|
||||||
|
settings:
|
||||||
|
DefaultValueInitialized: true
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
BIN
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/win_x86_64/msvcp140_1.dll
Normal file
BIN
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/win_x86_64/msvcp140_1.dll
Normal file
Binary file not shown.
@ -0,0 +1,27 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 713e2b6c25b3540e595a5036bacaedbd
|
||||||
|
PluginImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
iconMap: {}
|
||||||
|
executionOrder: {}
|
||||||
|
defineConstraints: []
|
||||||
|
isPreloaded: 0
|
||||||
|
isOverridable: 0
|
||||||
|
isExplicitlyReferenced: 0
|
||||||
|
validateReferences: 1
|
||||||
|
platformData:
|
||||||
|
- first:
|
||||||
|
Any:
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings: {}
|
||||||
|
- first:
|
||||||
|
Editor: Editor
|
||||||
|
second:
|
||||||
|
enabled: 1
|
||||||
|
settings:
|
||||||
|
DefaultValueInitialized: true
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
BIN
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/win_x86_64/msvcp140_2.dll
Normal file
BIN
d2/Assets/WX-WASM-SDK-V2/Editor/Brotli/win_x86_64/msvcp140_2.dll
Normal file
Binary file not shown.
@ -0,0 +1,27 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 250ffb10dd8854b5d8b5d31a7f9afd14
|
||||||
|
PluginImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
iconMap: {}
|
||||||
|
executionOrder: {}
|
||||||
|
defineConstraints: []
|
||||||
|
isPreloaded: 0
|
||||||
|
isOverridable: 0
|
||||||
|
isExplicitlyReferenced: 0
|
||||||
|
validateReferences: 1
|
||||||
|
platformData:
|
||||||
|
- first:
|
||||||
|
Any:
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings: {}
|
||||||
|
- first:
|
||||||
|
Editor: Editor
|
||||||
|
second:
|
||||||
|
enabled: 1
|
||||||
|
settings:
|
||||||
|
DefaultValueInitialized: true
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Binary file not shown.
@ -0,0 +1,27 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e23a7460c65914b4995b078d7edfcd55
|
||||||
|
PluginImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
iconMap: {}
|
||||||
|
executionOrder: {}
|
||||||
|
defineConstraints: []
|
||||||
|
isPreloaded: 0
|
||||||
|
isOverridable: 0
|
||||||
|
isExplicitlyReferenced: 0
|
||||||
|
validateReferences: 1
|
||||||
|
platformData:
|
||||||
|
- first:
|
||||||
|
Any:
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings: {}
|
||||||
|
- first:
|
||||||
|
Editor: Editor
|
||||||
|
second:
|
||||||
|
enabled: 1
|
||||||
|
settings:
|
||||||
|
DefaultValueInitialized: true
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Binary file not shown.
@ -0,0 +1,27 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 466c0abf5fe5847879df912061e09f9e
|
||||||
|
PluginImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
iconMap: {}
|
||||||
|
executionOrder: {}
|
||||||
|
defineConstraints: []
|
||||||
|
isPreloaded: 0
|
||||||
|
isOverridable: 0
|
||||||
|
isExplicitlyReferenced: 0
|
||||||
|
validateReferences: 1
|
||||||
|
platformData:
|
||||||
|
- first:
|
||||||
|
Any:
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings: {}
|
||||||
|
- first:
|
||||||
|
Editor: Editor
|
||||||
|
second:
|
||||||
|
enabled: 1
|
||||||
|
settings:
|
||||||
|
DefaultValueInitialized: true
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
96
d2/Assets/WX-WASM-SDK-V2/Editor/MiniGameConfig.asset
Normal file
96
d2/Assets/WX-WASM-SDK-V2/Editor/MiniGameConfig.asset
Normal file
@ -0,0 +1,96 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 1795359250, guid: 1cf430f187a0b40eda7f668318d8be23, type: 3}
|
||||||
|
m_Name: MiniGameConfig
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
ProjectConf:
|
||||||
|
projectName: de
|
||||||
|
Appid: minigame-1
|
||||||
|
CDN:
|
||||||
|
assetLoadType: 0
|
||||||
|
compressDataPackage: 0
|
||||||
|
VideoUrl:
|
||||||
|
DST: E:/Project/d2/apk
|
||||||
|
StreamCDN:
|
||||||
|
bundleHashLength: 32
|
||||||
|
bundlePathIdentifier: StreamingAssets;
|
||||||
|
bundleExcludeExtensions: json;
|
||||||
|
AssetsUrl:
|
||||||
|
MemorySize: 256
|
||||||
|
HideAfterCallMain: 1
|
||||||
|
preloadFiles:
|
||||||
|
Orientation: 0
|
||||||
|
bgImageSrc: Assets/WX-WASM-SDK-V2/Runtime/wechat-default/images/background.jpg
|
||||||
|
dataFileSubPrefix:
|
||||||
|
maxStorage: 200
|
||||||
|
defaultReleaseSize: 31457280
|
||||||
|
texturesHashLength: 8
|
||||||
|
texturesPath: Assets/Textures
|
||||||
|
needCacheTextures: 1
|
||||||
|
loadingBarWidth: 240
|
||||||
|
needCheckUpdate: 0
|
||||||
|
disableHighPerformanceFallback: 0
|
||||||
|
IOSDevicePixelRatio: 0
|
||||||
|
SDKOptions:
|
||||||
|
UseFriendRelation: 0
|
||||||
|
UseCompressedTexture: 0
|
||||||
|
UseMiniGameChat: 0
|
||||||
|
PreloadWXFont: 0
|
||||||
|
CompileOptions:
|
||||||
|
DevelopBuild: 0
|
||||||
|
AutoProfile: 0
|
||||||
|
ScriptOnly: 0
|
||||||
|
Il2CppOptimizeSize: 1
|
||||||
|
profilingFuncs: 1
|
||||||
|
Webgl2: 1
|
||||||
|
fbslim: 0
|
||||||
|
DeleteStreamingAssets: 1
|
||||||
|
ProfilingMemory: 0
|
||||||
|
CleanBuild: 0
|
||||||
|
CustomNodePath:
|
||||||
|
autoAdaptScreen: 1
|
||||||
|
showMonitorSuggestModal: 1
|
||||||
|
enableProfileStats: 0
|
||||||
|
enableRenderAnalysis: 0
|
||||||
|
iOSAutoGCInterval: 10000
|
||||||
|
enableIOSPerformancePlus: 0
|
||||||
|
brotliMT: 1
|
||||||
|
CompressTexture:
|
||||||
|
halfSize: 0
|
||||||
|
useDXT5: 0
|
||||||
|
bundleSuffix: bundle
|
||||||
|
parallelWithBundle: 0
|
||||||
|
bundleDir:
|
||||||
|
dstMinDir:
|
||||||
|
debugMode: 0
|
||||||
|
force: 0
|
||||||
|
PlayerPrefsKeys: []
|
||||||
|
FontOptions:
|
||||||
|
CJK_Unified_Ideographs: 1
|
||||||
|
C0_Controls_and_Basic_Latin: 1
|
||||||
|
CJK_Symbols_and_Punctuation: 1
|
||||||
|
General_Punctuation: 1
|
||||||
|
Enclosed_CJK_Letters_and_Months: 1
|
||||||
|
Vertical_Forms: 1
|
||||||
|
CJK_Compatibility_Forms: 1
|
||||||
|
Miscellaneous_Symbols: 1
|
||||||
|
CJK_Compatibility: 1
|
||||||
|
Halfwidth_and_Fullwidth_Forms: 1
|
||||||
|
Dingbats: 1
|
||||||
|
Letterlike_Symbols: 1
|
||||||
|
Enclosed_Alphanumerics: 1
|
||||||
|
Number_Forms: 1
|
||||||
|
Currency_Symbols: 1
|
||||||
|
Arrows: 1
|
||||||
|
Geometric_Shapes: 1
|
||||||
|
Mathematical_Operators: 1
|
||||||
|
CustomUnicode:
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b7450604abb6e7949a6846ff701ca61a
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
d2/Assets/WX-WASM-SDK-V2/Editor/Node.meta
Normal file
8
d2/Assets/WX-WASM-SDK-V2/Editor/Node.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2b7b3996fe4b4cd4c876e5447cb27a8b
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
23
d2/Assets/WX-WASM-SDK-V2/Editor/Node/dump_wasm_symbol.mjs
Normal file
23
d2/Assets/WX-WASM-SDK-V2/Editor/Node/dump_wasm_symbol.mjs
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
import binaryen from "binaryen";
|
||||||
|
import process from "process";
|
||||||
|
import fs from "fs";
|
||||||
|
|
||||||
|
if (process.argv.length < 3) {
|
||||||
|
console.error("cannot find wasmcode, Usage: node dump_wasm_symbo.mjs <your_minigame_dir>");
|
||||||
|
process.exit(-1);
|
||||||
|
}
|
||||||
|
let dir = process.argv[2];
|
||||||
|
if (!dir.endsWith("/")) {
|
||||||
|
dir += "/";
|
||||||
|
}
|
||||||
|
let bin = fs.readFileSync(dir + "webgl/Build/webgl.wasm");
|
||||||
|
binaryen.then(function(binaryenOb){
|
||||||
|
let mod = binaryenOb.readBinary(bin);
|
||||||
|
let symbols = {};
|
||||||
|
for (let i = 0; i < mod.getNumFunctions(); ++i) {
|
||||||
|
let ref = mod.getFunctionByIndex(i);
|
||||||
|
let func = binaryenOb.getFunctionInfo(ref);
|
||||||
|
symbols[i] = func.name;
|
||||||
|
}
|
||||||
|
fs.writeFileSync(dir + "minigame/webgl.wasm.symbols.unityweb", JSON.stringify(symbols));
|
||||||
|
})
|
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e5abb6c95bc17485f832ec3d792e39c6
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules.meta
Normal file
8
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 45dc447fcca5d4b46b0674f209502b1a
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen.meta
generated
vendored
Normal file
8
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen.meta
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b21f40e0d8e747d438bd060c0db429de
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
201
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/LICENSE
generated
vendored
Normal file
201
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/LICENSE
generated
vendored
Normal file
@ -0,0 +1,201 @@
|
|||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
other entities that control, are controlled by, or are under common
|
||||||
|
control with that entity. For the purposes of this definition,
|
||||||
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
|
direction or management of such entity, whether by contract or
|
||||||
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
|
including but not limited to software source code, documentation
|
||||||
|
source, and configuration files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical
|
||||||
|
transformation or translation of a Source form, including but
|
||||||
|
not limited to compiled object code, generated documentation,
|
||||||
|
and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
|
Object form, made available under the License, as indicated by a
|
||||||
|
copyright notice that is included in or attached to the work
|
||||||
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
|
form, that is based on (or derived from) the Work and for which the
|
||||||
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
|
of this License, Derivative Works shall not include works that remain
|
||||||
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including
|
||||||
|
the original version of the Work and any modifications or additions
|
||||||
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
|
means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
|
communication on electronic mailing lists, source code control systems,
|
||||||
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
|
excluding communication that is conspicuously marked or otherwise
|
||||||
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
(except as stated in this section) patent license to make, have made,
|
||||||
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
|
where such license applies only to those patent claims licensable
|
||||||
|
by such Contributor that are necessarily infringed by their
|
||||||
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
|
institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
|
or contributory patent infringement, then any patent licenses
|
||||||
|
granted to You under this License for that Work shall terminate
|
||||||
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
|
modifications, and in Source or Object form, provided that You
|
||||||
|
meet the following conditions:
|
||||||
|
|
||||||
|
(a) You must give any other recipients of the Work or
|
||||||
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
|
(b) You must cause any modified files to carry prominent notices
|
||||||
|
stating that You changed the files; and
|
||||||
|
|
||||||
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
|
that You distribute, all copyright, patent, trademark, and
|
||||||
|
attribution notices from the Source form of the Work,
|
||||||
|
excluding those notices that do not pertain to any part of
|
||||||
|
the Derivative Works; and
|
||||||
|
|
||||||
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
|
distribution, then any Derivative Works that You distribute must
|
||||||
|
include a readable copy of the attribution notices contained
|
||||||
|
within such NOTICE file, excluding those notices that do not
|
||||||
|
pertain to any part of the Derivative Works, in at least one
|
||||||
|
of the following places: within a NOTICE text file distributed
|
||||||
|
as part of the Derivative Works; within the Source form or
|
||||||
|
documentation, if provided along with the Derivative Works; or,
|
||||||
|
within a display generated by the Derivative Works, if and
|
||||||
|
wherever such third-party notices normally appear. The contents
|
||||||
|
of the NOTICE file are for informational purposes only and
|
||||||
|
do not modify the License. You may add Your own attribution
|
||||||
|
notices within Derivative Works that You distribute, alongside
|
||||||
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
|
that such additional attribution notices cannot be construed
|
||||||
|
as modifying the License.
|
||||||
|
|
||||||
|
You may add Your own copyright statement to Your modifications and
|
||||||
|
may provide additional or different license terms and conditions
|
||||||
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
|
the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
|
this License, without any additional terms or conditions.
|
||||||
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
|
the terms of any separate license agreement you may have executed
|
||||||
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
|
except as required for reasonable and customary use in describing the
|
||||||
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
implied, including, without limitation, any warranties or conditions
|
||||||
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
|
appropriateness of using or redistributing the Work and assume any
|
||||||
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
|
unless required by applicable law (such as deliberate and grossly
|
||||||
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
|
liable to You for damages, including any direct, indirect, special,
|
||||||
|
incidental, or consequential damages of any character arising as a
|
||||||
|
result of this License or out of the use or inability to use the
|
||||||
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
|
other commercial damages or losses), even if such Contributor
|
||||||
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
|
or other liability obligations and/or rights consistent with this
|
||||||
|
License. However, in accepting such obligations, You may act only
|
||||||
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
|
defend, and hold each Contributor harmless for any liability
|
||||||
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following
|
||||||
|
boilerplate notice, with the fields enclosed by brackets "{}"
|
||||||
|
replaced with your own identifying information. (Don't include
|
||||||
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
|
comment syntax for the file format. We also recommend that a
|
||||||
|
file or class name and description of purpose be included on the
|
||||||
|
same "printed page" as the copyright notice for easier
|
||||||
|
identification within third-party archives.
|
||||||
|
|
||||||
|
Copyright {yyyy} {name of copyright owner}
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
7
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/LICENSE.meta
generated
vendored
Normal file
7
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/LICENSE.meta
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 72db98ce23892438085944429a2f0f1e
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
1280
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/README.md
generated
vendored
Normal file
1280
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/README.md
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/README.md.meta
generated
vendored
Normal file
7
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/README.md.meta
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0786375919a5f4b39a2842d398bab691
|
||||||
|
TextScriptImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/bin.meta
generated
vendored
Normal file
8
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/bin.meta
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 85639118ded4eb145925e11375103548
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
3
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/bin/package.json
generated
vendored
Normal file
3
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/bin/package.json
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type": "commonjs"
|
||||||
|
}
|
7
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/bin/package.json.meta
generated
vendored
Normal file
7
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/bin/package.json.meta
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a687be9fecc0c4635a0198f4c84c5a7a
|
||||||
|
TextScriptImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
2
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/bin/wasm-opt
generated
vendored
Normal file
2
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/bin/wasm-opt
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
7
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/bin/wasm-opt.meta
generated
vendored
Normal file
7
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/bin/wasm-opt.meta
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 59195b600f5474a34ab0de959545786a
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
2
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/bin/wasm2js
generated
vendored
Normal file
2
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/bin/wasm2js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
7
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/bin/wasm2js.meta
generated
vendored
Normal file
7
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/bin/wasm2js.meta
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 945d329c042b5422590297f9a668573b
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
2132
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/index.d.ts
generated
vendored
Normal file
2132
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/index.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/index.d.ts.meta
generated
vendored
Normal file
7
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/index.d.ts.meta
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 5c728f27cb29c4a7ab957bec87aee79b
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
13
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/index.js
generated
vendored
Normal file
13
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/index.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
7
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/index.js.meta
generated
vendored
Normal file
7
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/index.js.meta
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e116238b593ee4f118e080fc2e1be1d0
|
||||||
|
TextScriptImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
45
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/package.json
generated
vendored
Normal file
45
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/package.json
generated
vendored
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
{
|
||||||
|
"name": "binaryen",
|
||||||
|
"description": "Browser & Node.js builds of Binaryen, a compiler infrastructure and toolchain library for WebAssembly.",
|
||||||
|
"version": "103.0.0",
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/AssemblyScript/binaryen.js.git"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"webassembly",
|
||||||
|
"wasm"
|
||||||
|
],
|
||||||
|
"type": "module",
|
||||||
|
"main": "index.js",
|
||||||
|
"typings": "index.d.ts",
|
||||||
|
"bin": {
|
||||||
|
"wasm-opt": "bin/wasm-opt",
|
||||||
|
"wasm2js": "bin/wasm2js"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"readme": "doctoc README.md --github --title \"### Contents\"",
|
||||||
|
"check": "tsc index.d.ts --noEmit --strict --noImplicitAny --strictNullChecks --listFiles --diagnostics",
|
||||||
|
"test": "npm run check && node tests/sanity && node tests/example",
|
||||||
|
"bundle": "node scripts/bundle.js"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"index.js",
|
||||||
|
"index.d.ts",
|
||||||
|
"package.json",
|
||||||
|
"package-lock.json",
|
||||||
|
"README.md",
|
||||||
|
"bin/package.json",
|
||||||
|
"bin/wasm-opt",
|
||||||
|
"bin/wasm2js"
|
||||||
|
],
|
||||||
|
"devDependencies": {
|
||||||
|
"dateformat": "^5.0.2",
|
||||||
|
"doctoc": "^2.1.0",
|
||||||
|
"esbuild": "^0.13.14",
|
||||||
|
"semver": "^7.1.3",
|
||||||
|
"simple-git": "^2.47.0",
|
||||||
|
"typescript": "^4.4.4"
|
||||||
|
}
|
||||||
|
}
|
7
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/package.json.meta
generated
vendored
Normal file
7
d2/Assets/WX-WASM-SDK-V2/Editor/Node/node_modules/binaryen/package.json.meta
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 95f171f78f3854726ba37852e7da8ace
|
||||||
|
TextScriptImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
10
d2/Assets/WX-WASM-SDK-V2/Editor/Node/package.json
Normal file
10
d2/Assets/WX-WASM-SDK-V2/Editor/Node/package.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"name": "unity-wasm",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "",
|
||||||
|
"author": "",
|
||||||
|
"license": "ISC",
|
||||||
|
"dependencies": {
|
||||||
|
"binaryen": "^103.0.0"
|
||||||
|
}
|
||||||
|
}
|
7
d2/Assets/WX-WASM-SDK-V2/Editor/Node/package.json.meta
Normal file
7
d2/Assets/WX-WASM-SDK-V2/Editor/Node/package.json.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b7da9cba2e99b4eaf9c4813ef99dd093
|
||||||
|
TextScriptImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
120
d2/Assets/WX-WASM-SDK-V2/Editor/PicCompressor.cs
Normal file
120
d2/Assets/WX-WASM-SDK-V2/Editor/PicCompressor.cs
Normal file
@ -0,0 +1,120 @@
|
|||||||
|
using System.IO;
|
||||||
|
using System.Threading;
|
||||||
|
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace WeChatWASM
|
||||||
|
{
|
||||||
|
public class PicTask
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 0: png, 1:astc, 2:etc2,3:pvrtc
|
||||||
|
/// </summary>
|
||||||
|
public int type;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 图片路径
|
||||||
|
/// </summary>
|
||||||
|
public string src;
|
||||||
|
public string dst;
|
||||||
|
public int width;
|
||||||
|
public int height;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 基于ImageMagick的图片处理
|
||||||
|
/// </summary>
|
||||||
|
///
|
||||||
|
public static class PicCompressor
|
||||||
|
{
|
||||||
|
private static string ASTCPath;
|
||||||
|
private static string PVRTCPath;
|
||||||
|
private static string PNGPath;
|
||||||
|
private static string DXT5Path;
|
||||||
|
private static Semaphore sempore = new Semaphore(8, 8); // 最多设置8个进程
|
||||||
|
|
||||||
|
public static string GetASTCPath()
|
||||||
|
{
|
||||||
|
if (Application.platform == RuntimePlatform.WindowsEditor)
|
||||||
|
{
|
||||||
|
return Path.Combine(UnityUtil.GetWxSDKRootPath(), "Editor/TextureEditor/Node/astcenc-sse4.1.exe");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (UnityEngine.SystemInfo.processorType.ToLower().Contains("apple"))
|
||||||
|
{
|
||||||
|
return Path.Combine(UnityUtil.GetWxSDKRootPath(), "Editor/TextureEditor/Node/astcenc-neon");
|
||||||
|
}
|
||||||
|
|
||||||
|
return Path.Combine(UnityUtil.GetWxSDKRootPath(), "Editor/TextureEditor/Node/astcenc-avx2");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static string GetPVRTCPath()
|
||||||
|
{
|
||||||
|
return Path.Combine(UnityUtil.GetWxSDKRootPath(), "Editor/TextureEditor/Node/PVRTexToolCLI" + (Application.platform == RuntimePlatform.WindowsEditor ? ".exe" : string.Empty));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static string GetDXT5Path()
|
||||||
|
{
|
||||||
|
return Path.Combine(UnityUtil.GetWxSDKRootPath(), "Editor/TextureEditor/Node/PVRTexToolCLI" + (Application.platform == RuntimePlatform.WindowsEditor ? ".exe" : string.Empty));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static string GetPNGPath()
|
||||||
|
{
|
||||||
|
return Path.Combine(UnityUtil.GetWxSDKRootPath(), "Editor/TextureEditor/Node/pngquant" + (Application.platform == RuntimePlatform.WindowsEditor ? ".exe" : string.Empty));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void TestASTC()
|
||||||
|
{
|
||||||
|
var p = new System.Diagnostics.Process();
|
||||||
|
p.StartInfo.FileName = GetASTCPath();
|
||||||
|
p.StartInfo.UseShellExecute = false;
|
||||||
|
p.StartInfo.RedirectStandardInput = true;
|
||||||
|
p.StartInfo.RedirectStandardOutput = true;
|
||||||
|
p.StartInfo.RedirectStandardError = true;
|
||||||
|
p.StartInfo.CreateNoWindow = true;
|
||||||
|
p.StartInfo.Arguments = " -help";
|
||||||
|
|
||||||
|
p.Start();
|
||||||
|
|
||||||
|
string strOuput = p.StandardOutput.ReadToEnd();
|
||||||
|
Debug.Log(strOuput);
|
||||||
|
p.WaitForExit();
|
||||||
|
p.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void TestMinPNG()
|
||||||
|
{
|
||||||
|
var p = new System.Diagnostics.Process();
|
||||||
|
p.StartInfo.FileName = GetPNGPath();
|
||||||
|
p.StartInfo.UseShellExecute = false;
|
||||||
|
p.StartInfo.RedirectStandardInput = true;
|
||||||
|
p.StartInfo.RedirectStandardOutput = true;
|
||||||
|
p.StartInfo.RedirectStandardError = true;
|
||||||
|
p.StartInfo.CreateNoWindow = true;
|
||||||
|
p.StartInfo.Arguments = " -help";
|
||||||
|
|
||||||
|
p.Start();
|
||||||
|
|
||||||
|
/*
|
||||||
|
string strOuput = p.StandardOutput.ReadToEnd();
|
||||||
|
Debug.Log(strOuput);
|
||||||
|
p.WaitForExit();
|
||||||
|
p.Close();
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void TestPVRTC()
|
||||||
|
{
|
||||||
|
var p = new System.Diagnostics.Process();
|
||||||
|
p.StartInfo.FileName = GetPVRTCPath();
|
||||||
|
p.StartInfo.UseShellExecute = false;
|
||||||
|
p.StartInfo.RedirectStandardInput = true;
|
||||||
|
p.StartInfo.RedirectStandardOutput = true;
|
||||||
|
p.StartInfo.RedirectStandardError = true;
|
||||||
|
p.StartInfo.CreateNoWindow = true;
|
||||||
|
p.StartInfo.Arguments = " -help";
|
||||||
|
|
||||||
|
p.Start();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
11
d2/Assets/WX-WASM-SDK-V2/Editor/PicCompressor.cs.meta
Normal file
11
d2/Assets/WX-WASM-SDK-V2/Editor/PicCompressor.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0b1635079cc064e43992cabea23c6113
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
d2/Assets/WX-WASM-SDK-V2/Editor/TextureEditor.meta
Normal file
8
d2/Assets/WX-WASM-SDK-V2/Editor/TextureEditor.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 462456f351632b44993fe5319df59bc4
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
d2/Assets/WX-WASM-SDK-V2/Editor/TextureEditor/Node.meta
Normal file
8
d2/Assets/WX-WASM-SDK-V2/Editor/TextureEditor/Node.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 84fbb36d564fa3e469ef8739966eae1f
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
BIN
d2/Assets/WX-WASM-SDK-V2/Editor/TextureEditor/Node/PVRTexToolCLI
Normal file
BIN
d2/Assets/WX-WASM-SDK-V2/Editor/TextureEditor/Node/PVRTexToolCLI
Normal file
Binary file not shown.
Binary file not shown.
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 53be097f33ee44043afd3a9a9b37f51a
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6d497916b78134c669342228f6836ff0
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
BIN
d2/Assets/WX-WASM-SDK-V2/Editor/TextureEditor/Node/astcenc-avx2
Normal file
BIN
d2/Assets/WX-WASM-SDK-V2/Editor/TextureEditor/Node/astcenc-avx2
Normal file
Binary file not shown.
Binary file not shown.
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d11f540cd68bc4963b55a165b65e0eab
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 8b67e6c263812432b84963c0556881bc
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
BIN
d2/Assets/WX-WASM-SDK-V2/Editor/TextureEditor/Node/astcenc-neon
Normal file
BIN
d2/Assets/WX-WASM-SDK-V2/Editor/TextureEditor/Node/astcenc-neon
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user