提交 3ac73ab6 编写于 作者: 肖林

add FileSystem/PlayerPref demo

上级 006e75b0
{
"files.exclude":
{
"**/.DS_Store":true,
"**/.git":true,
"**/.gitmodules":true,
"**/*.booproj":true,
"**/*.pidb":true,
"**/*.suo":true,
"**/*.user":true,
"**/*.userprefs":true,
"**/*.unityproj":true,
"**/*.dll":true,
"**/*.exe":true,
"**/*.pdf":true,
"**/*.mid":true,
"**/*.midi":true,
"**/*.wav":true,
"**/*.gif":true,
"**/*.ico":true,
"**/*.jpg":true,
"**/*.jpeg":true,
"**/*.png":true,
"**/*.psd":true,
"**/*.tga":true,
"**/*.tif":true,
"**/*.tiff":true,
"**/*.3ds":true,
"**/*.3DS":true,
"**/*.fbx":true,
"**/*.FBX":true,
"**/*.lxo":true,
"**/*.LXO":true,
"**/*.ma":true,
"**/*.MA":true,
"**/*.obj":true,
"**/*.OBJ":true,
"**/*.asset":true,
"**/*.cubemap":true,
"**/*.flare":true,
"**/*.mat":true,
"**/*.meta":true,
"**/*.prefab":true,
"**/*.unity":true,
"build/":true,
"Build/":true,
"Library/":true,
"library/":true,
"obj/":true,
"Obj/":true,
"ProjectSettings/":true,
"temp/":true,
"Temp/":true
}
}
\ No newline at end of file
fileFormatVersion: 2
guid: 93ceb8ed2eee0464cb3598aa1b241f1c
guid: 7e63042ef162e4907b145ce8723af7c3
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
......@@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 705507994}
m_IndirectSpecularColor: {r: 0.44657874, g: 0.49641275, b: 0.5748172, a: 1}
m_IndirectSpecularColor: {r: 0.44657815, g: 0.49641192, b: 0.57481617, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
......@@ -418,6 +418,86 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 194405180}
m_CullTransparentMesh: 0
--- !u!1 &203458237
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 203458238}
- component: {fileID: 203458240}
- component: {fileID: 203458239}
m_Layer: 5
m_Name: Text
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &203458238
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 203458237}
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: 916108629}
m_RootOrder: 0
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 &203458239
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 203458237}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, 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_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 24
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 1
m_MaxSize: 40
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: "FileSystem\n(\u5FAE\u4FE1\u6587\u4EF6\u5B58\u50A8)"
--- !u!222 &203458240
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 203458237}
m_CullTransparentMesh: 0
--- !u!1 &281854911
GameObject:
m_ObjectHideFlags: 0
......@@ -712,6 +792,86 @@ RectTransform:
m_AnchoredPosition: {x: 0, y: -0.5000038}
m_SizeDelta: {x: -20, y: -13}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &675278489
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 675278490}
- component: {fileID: 675278492}
- component: {fileID: 675278491}
m_Layer: 5
m_Name: Text
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &675278490
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 675278489}
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: 908224560}
m_RootOrder: 0
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 &675278491
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 675278489}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, 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_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 24
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 1
m_MaxSize: 40
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: "PlayerPref\n(\u5FAE\u4FE1PlayerPref)"
--- !u!222 &675278492
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 675278489}
m_CullTransparentMesh: 0
--- !u!1 &696454945
GameObject:
m_ObjectHideFlags: 0
......@@ -917,7 +1077,6 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3}
m_Name:
m_EditorClassIdentifier:
m_SendPointerHoverToParent: 1
m_HorizontalAxis: Horizontal
m_VerticalAxis: Vertical
m_SubmitButton: Submit
......@@ -1101,6 +1260,274 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 831793166}
m_CullTransparentMesh: 0
--- !u!1 &908224559
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 908224560}
- component: {fileID: 908224563}
- component: {fileID: 908224562}
- component: {fileID: 908224561}
m_Layer: 5
m_Name: PlayerPref
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &908224560
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 908224559}
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: 675278490}
m_Father: {fileID: 1586432807}
m_RootOrder: 10
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: 373, y: 36.492302}
m_SizeDelta: {x: 316.5764, y: 82.5499}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &908224561
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 908224559}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 908224562}
m_OnClick:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 1586432808}
m_TargetAssemblyTypeName: Demo, Assembly-CSharp
m_MethodName: OnPlayerPrefClick
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
--- !u!114 &908224562
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 908224559}
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: 10905, 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 &908224563
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 908224559}
m_CullTransparentMesh: 0
--- !u!1 &916108628
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 916108629}
- component: {fileID: 916108632}
- component: {fileID: 916108631}
- component: {fileID: 916108630}
m_Layer: 5
m_Name: "\u5199\u5165\u8BFB\u53D6\u6587\u4EF6"
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &916108629
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 916108628}
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: 203458238}
m_Father: {fileID: 1586432807}
m_RootOrder: 9
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: 16, y: 36.492302}
m_SizeDelta: {x: 316.5764, y: 82.5499}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &916108630
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 916108628}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 916108631}
m_OnClick:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 1586432808}
m_TargetAssemblyTypeName: Demo, Assembly-CSharp
m_MethodName: OnFileSystemManagerClick
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
--- !u!114 &916108631
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 916108628}
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: 10905, 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 &916108632
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 916108628}
m_CullTransparentMesh: 0
--- !u!1 &963194225
GameObject:
m_ObjectHideFlags: 0
......@@ -1541,7 +1968,6 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: de09d77023c4f44de8c19c3b277a9285, type: 3}
m_Name:
m_EditorClassIdentifier:
input: {fileID: 1379490560}
--- !u!1 &1497117442
GameObject:
m_ObjectHideFlags: 0
......@@ -1992,6 +2418,8 @@ RectTransform:
- {fileID: 1379490561}
- {fileID: 1287094102}
- {fileID: 12804995}
- {fileID: 916108629}
- {fileID: 908224560}
m_Father: {fileID: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
......@@ -2009,7 +2437,7 @@ MonoBehaviour:
m_GameObject: {fileID: 1586432803}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 25b7ce6bfe7b34f798bee95fac54b95f, type: 3}
m_Script: {fileID: 11500000, guid: 06d52239868a7436e9474d30c9cfa73b, type: 3}
m_Name:
m_EditorClassIdentifier:
txtUserInfo: {fileID: 1522841552}
......
fileFormatVersion: 2
guid: 9fc0d4010bbf28b4594072e72b8655ab
guid: 9a069299b0b9d4cf68218d815a4c1b38
DefaultImporter:
externalObjects: {}
userData:
......
fileFormatVersion: 2
guid: 68bcd50b8f9ed4fd3a62926d561bbbfe
guid: 1feadfed585554941a4232a54914f4d9
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
......@@ -14,47 +14,25 @@ public class Demo : MonoBehaviour
// Start is called before the first frame update
void Start()
{
WX.InitSDK((code)=> {
WX.InitSDK((code) =>
{
// 打印屏幕信息
var systemInfo = WeChatWASM.WX.GetSystemInfoSync();
Debug.Log($"{systemInfo.screenWidth}:{systemInfo.screenHeight}, {systemInfo.windowWidth}:{systemInfo.windowHeight}, {systemInfo.pixelRatio}");
// 获取文件系统
var statOption = new WXStatOption();
statOption.path = env.USER_DATA_PATH + "/__GAME_FILE_CACHE";
statOption.recursive = true;
statOption.success = (succ) => {
Debug.Log($"stat success");
foreach(var file in succ.stats)
{
Debug.Log($"stat info. {file.path}, " +
$"{file.stats.size}," +
$"{file.stats.mode}," +
$"{file.stats.lastAccessedTime}," +
$"{file.stats.lastModifiedTime}");
}
};
statOption.complete = (complete) => {
Debug.Log($"stat complete");
};
statOption.fail = (fail) => {
Debug.Log($"stat fail {fail.errMsg}");
};
Debug.Log($"stat invoke. Path:{statOption.path}");
fs.Stat(statOption);
// 预先创建广告实例
Debug.Log("初始化成功!");
ad = WX.CreateRewardedVideoAd(new WXCreateRewardedVideoAdParam()
{
adUnitId = "xxxxxxxx" //自己申请广告单元ID
});
ad.OnError((r)=> {
Debug.Log("ad error:"+r.errMsg);
ad.OnError((r) =>
{
Debug.Log("ad error:" + r.errMsg);
});
ad.OnClose((r)=> {
ad.OnClose((r) =>
{
Debug.Log("ad close:" + r.isEnded);
});
......@@ -101,10 +79,12 @@ public class Demo : MonoBehaviour
env = 0,
offerId = "xxxx", //在米大师侧申请的应用 id
currencyType = "CNY",
success = (res) => {
success = (res) =>
{
Debug.Log("pay success!");
},
fail = (res) => {
fail = (res) =>
{
Debug.Log("pay fail:" + res.errMsg);
}
});
......@@ -127,8 +107,8 @@ public class Demo : MonoBehaviour
{
Debug.Log("OnCanplay called");
inneraudio.Play();
});
}
});
}
public void OnStopInnerAudio()
{
......@@ -143,34 +123,97 @@ public class Demo : MonoBehaviour
WX.ReportEvent("exptnormal", videoReport);
}
public void OnCreateUserInfoButton()
public void OnFileSystemManagerClick()
{
// 扫描文件系统目录
fs.Stat(new WXStatOption
{
path = env.USER_DATA_PATH + "/__GAME_FILE_CACHE",
recursive = true,
success = (succ) =>
{
Debug.Log($"stat success");
foreach (var file in succ.stats)
{
Debug.Log($"stat info. {file.path}, " +
$"{file.stats.size}," +
$"{file.stats.mode}," +
$"{file.stats.lastAccessedTime}," +
$"{file.stats.lastModifiedTime}");
}
},
fail = (fail) =>
{
Debug.Log($"stat fail {fail.errMsg}");
}
});
// 同步接口创建目录(请勿在游戏过程中频繁调用同步接口)
var errMsg = fs.MkdirSync(env.USER_DATA_PATH + "/mydir", true);
// 异步写入文件
fs.WriteFile(new WriteFileParam
{
filePath = env.USER_DATA_PATH + "/mydir/myfile.txt",
encoding = "utf8",
data = System.Text.Encoding.UTF8.GetBytes("Test FileSystemManager"),
success = (succ) =>
{
Debug.Log($"WriteFile succ {succ.errMsg}");
// 异步读取文件
fs.ReadFile(new ReadFileParam
{
filePath = env.USER_DATA_PATH + "/mydir/myfile.txt",
encoding = "utf8",
success = (succ) =>
{
Debug.Log($"ReadFile succ. stringData(utf8):{succ.stringData}");
},
fail = (fail) =>
{
Debug.Log($"ReadFile fail {fail.errMsg}");
}
});
// 异步以无编码(二进制)方式读取
fs.ReadFile(new ReadFileParam
{
filePath = env.USER_DATA_PATH + "/mydir/myfile.txt",
encoding = "",
success = (succ) =>
{
Debug.Log($"ReadFile succ. data(binary):{succ.binData.Length}, stringData(utf8):{System.Text.Encoding.UTF8.GetString(succ.binData)}");
},
fail = (fail) =>
{
Debug.Log($"ReadFile fail {fail.errMsg}");
}
});
},
fail = (fail) =>
{
Debug.Log($"WriteFile fail {fail.errMsg}");
},
complete = null
});
}
public void OnPlayerPrefClick()
{
//var opt = new GetSettingOption();
//opt.complete = (ret) => {
// Debug.Log("OnGetUserInfo complete");
//};
//opt.fail = (ret) => {
// Debug.Log("OnGetUserInfo fail");
//};
//opt.success = (ret) => {
// Debug.Log("OnGetUserInfo succ");
// foreach(var autoSetting in ret.authSetting)
// {
// Debug.Log($"autoSetting {autoSetting.Key}, {autoSetting.Value}");
// }
// if(!ret.authSetting.ContainsKey("wx.getUserInfo"))
// {
// }
//};
//WeChatWASM.WX.GetSetting(opt);
// 注意!!! PlayerPrefs为同步接口,iOS高性能模式下为"跨进程"同步调用,会阻塞游戏线程,请避免频繁调用
PlayerPrefs.SetString("mystringkey", "myestringvalue");
PlayerPrefs.SetInt("myintkey", 123);
PlayerPrefs.SetFloat("myfloatkey", 1.23f);
Debug.Log($"PlayerPrefs mystringkey:{ PlayerPrefs.GetString("mystringkey")}");
Debug.Log($"PlayerPrefs myintkey:{ PlayerPrefs.GetInt("myintkey")}");
Debug.Log($"PlayerPrefs myfloatkey:{ PlayerPrefs.GetFloat("myfloatkey")}");
}
// Update is called once per frame
void Update()
{
}
}
fileFormatVersion: 2
guid: 25b7ce6bfe7b34f798bee95fac54b95f
guid: 06d52239868a7436e9474d30c9cfa73b
MonoImporter:
externalObjects: {}
serializedVersion: 2
......
using UnityEngine;
using System.Collections;
using WeChatWASM;
using UnityEngine.UI;
using UnityEngine.EventSystems;
public class Inputs : MonoBehaviour, IPointerClickHandler, IPointerExitHandler
{
public InputField input;
public void OnPointerClick(PointerEventData eventData)
{
Debug.Log("ooooo");
WX.ShowKeyboard(new ShowKeyboardOption()
{
defaultValue = "xxx",
maxLength = 20,
confirmType = "go"
});
//绑定回调
WX.OnKeyboardConfirm(OnConfirm);
WX.OnKeyboardComplete(OnComplete);
WX.OnKeyboardInput(OnInput);
}
public void OnPointerExit(PointerEventData eventData)
{
// 隐藏输入法
if (!input.isFocused)
{
WX.HideKeyboard(new HideKeyboardOption());
//删除掉相关事件监听
WX.OffKeyboardInput(OnInput);
WX.OffKeyboardConfirm(OnConfirm);
WX.OffKeyboardComplete(OnComplete);
}
}
public void OnInput(OnKeyboardInputCallbackResult v)
{
Debug.Log("onInput");
Debug.Log(v.value);
if (input.isFocused)
{
input.text = v.value;
}
}
public void OnConfirm(OnKeyboardInputCallbackResult v)
{
// 输入法confirm回调
Debug.Log("onConfirm");
Debug.Log(v.value);
WX.HideKeyboard(new HideKeyboardOption());
}
public void OnComplete(OnKeyboardInputCallbackResult v)
{
// 输入法complete回调
Debug.Log("OnComplete");
Debug.Log(v.value);
WX.HideKeyboard(new HideKeyboardOption());
}
void Start()
{
}
}
fileFormatVersion: 2
guid: de09d77023c4f44de8c19c3b277a9285
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 1c91b41a01a184dc282aaef94f6214d7
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: d3be0c897f9d0439ca651c3ba43042fb
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: c6c7402b9102140948991b424466d178
guid: f58ddb0ef2fce4c34af83a53c9fa105a
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
......@@ -6,6 +6,11 @@ Removed - 删除功能/接口
Fixed - 修复问题
Others - 其他
-->
## 2022-9-21
### Added
* 增加游戏圈接口openPageOption, getGameClubData
* FileSystemManager增加stat接口
## 2022-9-13
### Added
* 微信压缩纹理工具支持bundle级别修改压缩纹理等级
......
fileFormatVersion: 2
guid: 35c8a90630e773b4087bde80e56ac901
guid: f86a17fe8ac804cdb855df6e885f6687
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: 8060bf747cdec4cc5b0ae10176e090b6
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 05d72c118fe7b429c9d2039b864f5fda
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 8c1fb826719a14482bd544e70de120e6
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 3ac737f2019374f3288b592a7e5ffbf7
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 8032ff4ea4e224ac38b0911b23bddf5a
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 279651ee0a450452fa3f9148b2008ec0
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 59d9fc8a3f17643f4962c9856283a4dc
guid: a99541890600445e1ad81d2f8ae70b1e
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: aa727ab8e27a54056bdb268f27c66a83
guid: 10b1b8ad5b2cf47369c4e440f4d0d7b9
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: a1a7b63b79ddb4fe4baeac26b08433bd
guid: bb2d52bf15bc14ee1a4bfa2fa324833a
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: dab3bb4ab41754ebda0f86ef29ed50e3
guid: e271e31688e6d406e84bc2d43c21dae0
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
......@@ -15,16 +15,16 @@ MonoBehaviour:
ProjectConf:
projectName: testapi
Appid: wxf616b60467bcfcaf
CDN: https://www.oooceanworld.com/testapi
CDN: https://www.test.com
assetLoadType: 1
VideoUrl:
DST: /Users/xiaolin/Documents/wxgame_unity/wxgame_testapi
DST: /Users/nihayashi/Documents/wxgame_unity/wxgame_testapi
StreamCDN:
bundleHashLength: 32
bundlePathIdentifier: StreamingAssets;
bundleExcludeExtensions: json;
AssetsUrl:
MemorySize: 500
MemorySize: 256
HideAfterCallMain: 1
preloadFiles:
Orientation: 0
......@@ -38,7 +38,7 @@ MonoBehaviour:
loadingBarWidth: 240
needCheckUpdate: 0
SDKOptions:
UseAudioApi: 1
UseAudioApi: 0
UseFriendRelation: 0
UseCompressedTexture: 0
CompileOptions:
......
fileFormatVersion: 2
guid: ad99e85c96b7a71479d04373a6ca707b
guid: b4aa1910e02254c049fc739f33c7fdd8
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
......
fileFormatVersion: 2
guid: f833c57afd856418f9de4a641e156bdf
guid: da423e0eacc3544bf93cdc3c172b0639
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: 9b26a4f627b0c4af48d2fc7413fbbd15
guid: 5ada70a2d270241aa8adf2c27bc57b24
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
module.exports = {"dst":"/Users/liuxinyu/Desktop/wechat07/webgl-min","dataPath":"/Users/liuxinyu/Documents/tgit/unity-wasm/SDKAdmin/Assets","useDXT5":false,"textureList":[{"path":"RainStreak.4f75dea7","width":16,"height":128,"astc":"4x4"}]}
\ No newline at end of file
fileFormatVersion: 2
guid: 9d7cd0d0ded094b7ba7d2ece84a4b04b
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 6a0a7ea77d01b45b6a1f2f60bc89e269
guid: 44316fb50df45475f809e5a5daf96403
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: a3d25085461954ccf96b870bbabd2d51
guid: 826a494032d204d948beda959bf610ec
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: e49d6d9d90710412390e04f36c283269
guid: 5f96533ec3d1c416aaf310830746dc85
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
%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: 11500000, guid: d6151f7d6c2bd4ab28bae4d982575fee, type: 3}
m_Name: TextureCacheConfig
m_EditorClassIdentifier:
textureList: []
textureAtlasList: []
fileFormatVersion: 2
guid: 0148a9b96ea2e46a89a8e623bb25f98e
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: d8086091e09ab426f8c2d14c89323f2f
guid: b35b44c474a8f4d5c9f9bc60b87e19bc
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: 69f4037ee35674100b1a4b6289cf8105
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 6fa1e747ef0594a9baf3ee8ff0c3c163
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: f9c71ef77762d4083a4498096983315d
guid: 56df04df8cae245ebaa07b26046d5298
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: ad87a5671fdf04c608015c9c00b848a9
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 763a88019dda04376b665785d3a06280
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 7d53719aa7b5e403496301e4c978e928
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 299111972e6924449ab93f86fa2178cf
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 55af62a6c30f84cc9b635f48d7008bbd
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
<?xml version="1.0"?>
<doc>
<assembly>
<name>WX-WASM-SDK-Editor</name>
</assembly>
<members>
<member name="F:WeChatWASM.PicTask.type">
<summary>
0: png, 1:astc, 2:etc2
</summary>
</member>
<member name="F:WeChatWASM.PicTask.src">
<summary>
图片路径
</summary>
</member>
<member name="T:WeChatWASM.PicCompressor">
<summary>
基于ImageMagick的图片处理
</summary>
</member>
<member name="T:WeChatWASM.UnityUtil">
工具函数
</member>
<member name="F:WeChatWASM.WXProjectConf.Appid">
<summary>
游戏appid
</summary>
</member>
<member name="F:WeChatWASM.WXProjectConf.CDN">
<summary>
游戏资源CDN
</summary>
</member>
<member name="F:WeChatWASM.WXProjectConf.VideoUrl">
<summary>
视频url
</summary>
</member>
<member name="F:WeChatWASM.WXProjectConf.DST">
<summary>
导出路径(绝对路径)
</summary>
</member>
<member name="F:WeChatWASM.WXProjectConf.StreamCDN">
<summary>
AB包CDN地址
</summary>
</member>
<member name="F:WeChatWASM.WXProjectConf.AssetsUrl">
<summary>
Assets目录对应CDN地址
</summary>
</member>
<member name="F:WeChatWASM.WXProjectConf.MemorySize">
<summary>
游戏内存大小(MB)
</summary>
</member>
<member name="F:WeChatWASM.WXProjectConf.Orientation">
<summary>
游戏方向
</summary>
</member>
<member name="F:WeChatWASM.SDKOptions.UseAudioApi">
<summary>
使用微信音频API
</summary>
</member>
<member name="F:WeChatWASM.SDKOptions.UseFriendRelation">
<summary>
使用好友关系链
</summary>
</member>
<member name="F:WeChatWASM.SDKOptions.UseCompressedTexture">
<summary>
使用压缩纹理替换(beta)
</summary>
</member>
<member name="F:WeChatWASM.SDKOptions.PicPath">
<summary>
替换纹理的图片资源目录
</summary>
</member>
<member name="F:WeChatWASM.CompileOptions.DevelopBuild">
<summary>
Development Build
</summary>
</member>
<member name="F:WeChatWASM.CompileOptions.AutoProfile">
<summary>
Autoconnect Profiler
</summary>
</member>
<member name="F:WeChatWASM.CompileOptions.ScriptOnly">
<summary>
Scripts Only Build
</summary>
</member>
<member name="T:WeChatWASM.WXEditorWindow">
<summary>
脚本调用的话可修改 Assets/WX-WASM-SDK/Editor/MiniGameConfig.asset配置,然后调用WXEditorWindow 的 DoExport方法导出小游戏
</summary>
</member>
<member name="M:WeChatWASM.WXEditorWindow.ClearFriendRelationCode">
<summary>
如果没有使用好友关系链的话,自动删掉无用代码
</summary>
</member>
</members>
</doc>
fileFormatVersion: 2
guid: 35778dd32adfc4699a61fbdd52658f4e
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
......@@ -2,7 +2,7 @@
{
public class WXPluginVersion
{
public static string pluginVersion = "202209191717"; //这一行不要改他,导出的时候会自动替换
public static string pluginVersion = "202209191732"; //这一行不要改他,导出的时候会自动替换
}
public class WXPluginConf
{
......
fileFormatVersion: 2
guid: 60417c1db3feed34f8ea480c7ff71117
guid: a6e5d1515b2944f46bd1bd6c0437b1b9
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: 3efa6ac4d72c28743b15d01f2d1743c4
guid: bea66e9bb9e8547768a1145022ffdf1d
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: d2d80a4d15ddf4bd2b34799dce14ce02
guid: 3cd8dc92cc6d7421391bc59b5397f869
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: 07855a40422b8419aab61a83b5824440
guid: 27cdacab396a44fedb3a6809a3a82221
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: d6fa07e87c79a4903aba527817b61091
guid: 96f65164cd13a485c879ec1c2359d951
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: eaeabdc90fde34d6b963665cdb7f24a0
guid: 1dfc0420c05984504bf9d906d7c4a1db
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: 484e3477d829b446a8d7d5a8cdecb1d8
guid: a1c5a7ea3998644f5ab14d121afa0a35
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: 0efe34f0fd717408e80a04bc4fee014d
guid: c490646feed254c639c4c285d20a500f
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: 6406575cac9be4507967c1dd573dbb32
guid: 3c32af36a089546d69c8a0dac0c69ddf
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: 23d54492a31b645a6a8d608e760c0134
guid: c080615d58ad1407a9c5f5cc9feeda2a
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: 2b5ec43db22a9444b86d859aff3a3d37
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
......@@ -141,7 +141,7 @@ namespace WeChatWASM
errMsg = res.errMsg,
stringData = res.data
};
conf.fail?.Invoke(obj);
conf.success?.Invoke(obj);
conf.complete?.Invoke(obj);
}
ReadFileDict.Remove(res.callbackId);
......@@ -401,7 +401,7 @@ namespace WeChatWASM
var id = jsCallback.callbackId;
var type = jsCallback.type;
var res = jsCallback.res;
Debug.Log($"HanldStatCallback {msg}");
// Debug.Log($"HanldStatCallback {msg}");
if (FileSystemStatOptionList.ContainsKey(id))
{
var item = FileSystemStatOptionList[id];
......
fileFormatVersion: 2
guid: fe4e1d3d0baed91409fc76b1beebe677
guid: b44d0f912089b4b1aa631440fe0107a1
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: 8388b3a8ae6a54a6e963582b69e83eb6
guid: dafd7976cf99940b89970b3bf85e85e0
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: 74cce41b7d1f34680a0d1ca17814c841
guid: 28ddf1e33e7464300941c3f7ad530ccb
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: fb6e8933b7c084e1a8e7c1173c386e6e
guid: bdb43684a77bc4307b355debaecbd2da
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: 8371ffe4ff35cac4a9193bfff360934a
guid: 6a83e66e810024584abbf7fbe6c1b4bd
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: 24fe666b334773644a50e7a4d30e5ed6
guid: 5c40ce6ded23f49e2a66f302edb886b9
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: 728db1d7121e7a64faefe72675b79e38
guid: 248181b541e94452fab96cdd4a32ae28
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: d92bf0e4c1df4f945ae5ade87e61db28
guid: 8b3d329eb9e2f42ee896487b3df994f3
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
......@@ -198,12 +198,11 @@ export default {
},
WXStat(conf, callbackId){
conf = formatJsonStr(conf);
console.log('WXStat', conf, callbackId);
wx.getFileSystemManager().stat({
...conf,
success(res){
console.log('StatCallback succ', res);
if (Array.isArray(res.stats)) {
// console.log('StatCallback succ', res);
if (!Array.isArray(res.stats)) {
res.one_stat = res.stats;
res.stats = null;
}
......@@ -217,7 +216,7 @@ export default {
}));
},
complete(res){
if (Array.isArray(res.stats)) {
if (!Array.isArray(res.stats)) {
res.one_stat = res.stats;
res.stats = null;
}
......
fileFormatVersion: 2
guid: 9f91dd0b7a4c2104f82403893ab63d92
guid: 89fde508a673a438784ea055f00ce636
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: c85da5a21dc444c8d98c027a3d4c4755
guid: 52e4f817eef3640dcbc2430872003aec
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: 1f8e6597b752b4a2bb94c00151a01d59
guid: 2f9f837641faa43e09cdf05e957377e2
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: 2d1b5eddfda424bc0b329c92a5ed909e
guid: d714648efa4354cf9af7ecbdf790939b
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: 1fc6d156f6bb440f2bf20fbae052b7b4
guid: c7f48b035245b4b12aa4fa42fe06431b
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: ff28ebe45304e4bceb84ae1f28e701be
guid: 26021cce2695c4b498042f6e45997ae9
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
......@@ -41,21 +41,12 @@
"dependencies": {},
"url": "https://packages.unity.cn"
},
"com.unity.nuget.newtonsoft-json": {
"version": "3.0.2",
"depth": 2,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.cn"
},
"com.unity.services.core": {
"version": "1.4.2",
"version": "1.0.1",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.modules.unitywebrequest": "1.0.0",
"com.unity.nuget.newtonsoft-json": "3.0.2",
"com.unity.modules.androidjni": "1.0.0"
"com.unity.modules.unitywebrequest": "1.0.0"
},
"url": "https://packages.unity.cn"
},
......
......@@ -5,7 +5,10 @@ EditorBuildSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Scenes:
- enabled: 0
path:
guid: 00000000000000000000000000000000
- enabled: 1
path: Assets/Scenes/SampleScene.unity
guid: 9fc0d4010bbf28b4594072e72b8655ab
guid: 9a069299b0b9d4cf68218d815a4c1b38
m_configObjects: {}
......@@ -156,13 +156,11 @@ PlayerSettings:
enable360StereoCapture: 0
isWsaHolographicRemotingEnabled: 0
enableFrameTimingStats: 0
enableOpenGLProfilerGPURecorders: 1
useHDRDisplay: 0
D3DHDRBitDepth: 0
m_ColorGamuts: 00000000
targetPixelDensity: 30
resolutionScalingMode: 0
resetResolutionOnWindowResize: 0
androidSupportedAspectRatio: 1
androidMaxAspectRatio: 2.1
applicationIdentifier: {}
......@@ -523,7 +521,6 @@ PlayerSettings:
ps4videoRecordingFeaturesUsed: 0
ps4contentSearchFeaturesUsed: 0
ps4CompatibilityPS5: 0
ps4AllowPS5Detection: 0
ps4GPU800MHz: 1
ps4attribEyeToEyeDistanceSettingVR: 0
ps4IncludedModules: []
......@@ -538,7 +535,7 @@ PlayerSettings:
webGLNameFilesAsHashes: 0
webGLDataCaching: 0
webGLDebugSymbols: 2
webGLEmscriptenArgs: ' -s TOTAL_MEMORY=500MB'
webGLEmscriptenArgs: ' -s TOTAL_MEMORY=256MB'
webGLModulesDirectory:
webGLTemplate: PROJECT:WXTemplate2020
webGLAnalyzeBuildSize: 0
......
m_EditorVersion: 2021.3.9f1c1
m_EditorVersionWithRevision: 2021.3.9f1c1 (0fa35b602de1)
m_EditorVersion: 2021.2.18f1c1
m_EditorVersionWithRevision: 2021.2.18f1c1 (20c61a5fa8bf)
......@@ -8,6 +8,9 @@ EditorUserSettings:
RecentlyUsedSceneGuid-0:
value: 5a5757560101590a5d0c0e24427b5d44434e4c7a7b7a23677f2b4565b7b5353a
flags: 0
RecentlyUsedSceneGuid-1:
value: 5a5004505c0750020f5e0e7b14775c16404f4a7b742c7e6178284930b3e26760
flags: 0
vcSharedLogLevel:
value: 0d5e400f0650
flags: 0
......
......@@ -14,9 +14,9 @@ MonoBehaviour:
m_EditorClassIdentifier:
m_PixelRect:
serializedVersion: 2
x: 1160
y: 410
width: 1206
x: 100
y: 200
width: 1429
height: 715
m_ShowMode: 4
m_Title: Hierarchy
......@@ -43,12 +43,12 @@ MonoBehaviour:
serializedVersion: 2
x: 0
y: 30
width: 1206
width: 1429
height: 665
m_MinSize: {x: 300, y: 200}
m_MaxSize: {x: 24288, y: 16192}
vertical: 0
controlID: 38
controlID: 17
--- !u!114 &3
MonoBehaviour:
m_ObjectHideFlags: 52
......@@ -64,12 +64,12 @@ MonoBehaviour:
m_Children: []
m_Position:
serializedVersion: 2
x: 921
x: 1049
y: 0
width: 285
width: 380
height: 665
m_MinSize: {x: 276, y: 71}
m_MaxSize: {x: 4001, y: 4021}
m_MinSize: {x: 275, y: 50}
m_MaxSize: {x: 4000, y: 4000}
m_ActualView: {fileID: 13}
m_Panes:
- {fileID: 13}
......@@ -92,7 +92,7 @@ MonoBehaviour:
serializedVersion: 2
x: 0
y: 0
width: 228
width: 258.5
height: 394
m_MinSize: {x: 200, y: 200}
m_MaxSize: {x: 4000, y: 4000}
......@@ -118,7 +118,7 @@ MonoBehaviour:
serializedVersion: 2
x: 0
y: 394
width: 921
width: 1049
height: 271
m_MinSize: {x: 231, y: 271}
m_MaxSize: {x: 10001, y: 10021}
......@@ -148,7 +148,7 @@ MonoBehaviour:
serializedVersion: 2
x: 0
y: 0
width: 1206
width: 1429
height: 715
m_MinSize: {x: 875, y: 300}
m_MaxSize: {x: 10000, y: 10000}
......@@ -173,7 +173,7 @@ MonoBehaviour:
serializedVersion: 2
x: 0
y: 0
width: 1206
width: 1429
height: 30
m_MinSize: {x: 0, y: 0}
m_MaxSize: {x: 0, y: 0}
......@@ -195,7 +195,7 @@ MonoBehaviour:
serializedVersion: 2
x: 0
y: 695
width: 1206
width: 1429
height: 20
m_MinSize: {x: 0, y: 0}
m_MaxSize: {x: 0, y: 0}
......@@ -218,12 +218,12 @@ MonoBehaviour:
serializedVersion: 2
x: 0
y: 0
width: 921
width: 1049
height: 665
m_MinSize: {x: 200, y: 200}
m_MaxSize: {x: 16192, y: 16192}
vertical: 1
controlID: 39
controlID: 18
--- !u!114 &10
MonoBehaviour:
m_ObjectHideFlags: 52
......@@ -243,12 +243,12 @@ MonoBehaviour:
serializedVersion: 2
x: 0
y: 0
width: 921
width: 1049
height: 394
m_MinSize: {x: 200, y: 100}
m_MaxSize: {x: 16192, y: 8096}
vertical: 0
controlID: 40
controlID: 19
--- !u!114 &11
MonoBehaviour:
m_ObjectHideFlags: 52
......@@ -264,12 +264,12 @@ MonoBehaviour:
m_Children: []
m_Position:
serializedVersion: 2
x: 228
x: 258.5
y: 0
width: 693
width: 790.5
height: 394
m_MinSize: {x: 202, y: 221}
m_MaxSize: {x: 4002, y: 4021}
m_MinSize: {x: 200, y: 200}
m_MaxSize: {x: 4000, y: 4000}
m_ActualView: {fileID: 15}
m_Panes:
- {fileID: 15}
......@@ -296,9 +296,9 @@ MonoBehaviour:
m_Tooltip:
m_Pos:
serializedVersion: 2
x: 0
y: 413
width: 920
x: 100
y: 624
width: 1048
height: 250
m_ViewDataDictionary: {fileID: 0}
m_OverlayCanvas:
......@@ -317,22 +317,22 @@ MonoBehaviour:
m_SkipHidden: 0
m_SearchArea: 1
m_Folders:
- Assets/Scenes
- Assets
m_Globs: []
m_OriginalText:
m_ViewMode: 1
m_StartGridSize: 64
m_LastFolders:
- Assets/Scenes
- Assets
m_LastFoldersGridSize: -1
m_LastProjectPath: /Users/xiaolin/Documents/minigame-unity-webgl-transform/Demo/API
m_LastProjectPath: /Users/nihayashi/Documents/minigame-unity-webgl-transform/Demo/API
m_LockTracker:
m_IsLocked: 0
m_FolderTreeState:
scrollPos: {x: 0, y: 0}
m_SelectedIDs: 845b0000
m_LastClickedID: 23428
m_ExpandedIDs: 00000000625b000000ca9a3bffffff7f
m_SelectedIDs: 50710000
m_LastClickedID: 29008
m_ExpandedIDs: 000000005071000000ca9a3bffffff7f
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
......@@ -360,7 +360,7 @@ MonoBehaviour:
scrollPos: {x: 0, y: 0}
m_SelectedIDs:
m_LastClickedID: 0
m_ExpandedIDs: 00000000625b0000
m_ExpandedIDs:
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
......@@ -387,7 +387,7 @@ MonoBehaviour:
m_ListAreaState:
m_SelectedInstanceIDs:
m_LastClickedInstanceID: 0
m_HadKeyboardFocusLastEvent: 1
m_HadKeyboardFocusLastEvent: 0
m_ExpandedInstanceIDs: c6230000
m_RenameOverlay:
m_UserAcceptedRename: 0
......@@ -436,9 +436,9 @@ MonoBehaviour:
m_Tooltip:
m_Pos:
serializedVersion: 2
x: 922
y: 19
width: 284
x: 1149
y: 230
width: 379
height: 644
m_ViewDataDictionary: {fileID: 0}
m_OverlayCanvas:
......@@ -477,9 +477,9 @@ MonoBehaviour:
m_Tooltip:
m_Pos:
serializedVersion: 2
x: 1160
y: 440
width: 227
x: 100
y: 230
width: 257.5
height: 373
m_ViewDataDictionary: {fileID: 0}
m_OverlayCanvas:
......@@ -490,7 +490,7 @@ MonoBehaviour:
scrollPos: {x: 0, y: 0}
m_SelectedIDs:
m_LastClickedID: 0
m_ExpandedIDs: 36faffff36fbffff
m_ExpandedIDs: 74caffff66d5ffff12daffff6cddffff88deffff0a720000267500008c750000dc750000
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
......@@ -506,7 +506,7 @@ MonoBehaviour:
m_IsRenaming: 0
m_OriginalEventType: 11
m_IsRenamingFilename: 0
m_ClientGUIView: {fileID: 0}
m_ClientGUIView: {fileID: 4}
m_SearchString:
m_ExpandedScenes: []
m_CurrenRootInstanceID: 0
......@@ -534,9 +534,9 @@ MonoBehaviour:
m_Tooltip:
m_Pos:
serializedVersion: 2
x: 1388
y: 440
width: 691
x: 358.5
y: 230
width: 788.5
height: 373
m_ViewDataDictionary: {fileID: 0}
m_OverlayCanvas:
......@@ -734,14 +734,14 @@ MonoBehaviour:
m_OverrideSceneCullingMask: 6917529027641081856
m_SceneIsLit: 1
m_SceneLighting: 1
m_2DMode: 0
m_2DMode: 1
m_isRotationLocked: 0
m_PlayAudio: 0
m_AudioPlay: 0
m_Position:
m_Target: {x: 0, y: 0, z: 0}
m_Target: {x: 633.2234, y: 99.24029, z: -4.8210573}
speed: 2
m_Value: {x: 0, y: 0, z: 0}
m_Value: {x: 633.2234, y: 99.24029, z: -4.8210573}
m_RenderMode: 0
m_CameraMode:
drawMode: 0
......@@ -770,35 +770,35 @@ MonoBehaviour:
m_Size: {x: 0, y: 0}
yGrid:
m_Fade:
m_Target: 1
m_Target: 0
speed: 2
m_Value: 1
m_Value: 0
m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4}
m_Pivot: {x: 0, y: 0, z: 0}
m_Size: {x: 1, y: 1}
zGrid:
m_Fade:
m_Target: 0
m_Target: 1
speed: 2
m_Value: 0
m_Value: 1
m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4}
m_Pivot: {x: 0, y: 0, z: 0}
m_Size: {x: 0, y: 0}
m_Size: {x: 1, y: 1}
m_ShowGrid: 1
m_GridAxis: 1
m_gridOpacity: 0.5
m_Rotation:
m_Target: {x: -0.08717229, y: 0.89959055, z: -0.21045254, w: -0.3726226}
m_Target: {x: 0, y: 0, z: 0, w: 1}
speed: 2
m_Value: {x: -0.08717229, y: 0.89959055, z: -0.21045254, w: -0.3726226}
m_Value: {x: 0, y: 0, z: 0, w: 1}
m_Size:
m_Target: 9.002069
m_Target: 604.9338
speed: 2
m_Value: 8.90853
m_Value: 604.9338
m_Ortho:
m_Target: 0
m_Target: 1
speed: 2
m_Value: 0
m_Value: 1
m_CameraSettings:
m_Speed: 1
m_SpeedNormalized: 0.5
......@@ -839,9 +839,9 @@ MonoBehaviour:
m_Tooltip:
m_Pos:
serializedVersion: 2
x: 782
y: 242
width: 691
x: 502.5
y: 212
width: 788.5
height: 373
m_ViewDataDictionary: {fileID: 0}
m_OverlayCanvas:
......@@ -853,7 +853,7 @@ MonoBehaviour:
m_ShowGizmos: 0
m_TargetDisplay: 0
m_ClearColor: {r: 0, g: 0, b: 0, a: 0}
m_TargetSize: {x: 691, y: 352}
m_TargetSize: {x: 788.5, y: 352}
m_TextureFilterMode: 0
m_TextureHideFlags: 61
m_RenderIMGUI: 1
......@@ -868,8 +868,8 @@ MonoBehaviour:
m_VRangeLocked: 0
hZoomLockedByDefault: 0
vZoomLockedByDefault: 0
m_HBaseRangeMin: -172.75
m_HBaseRangeMax: 172.75
m_HBaseRangeMin: -197.125
m_HBaseRangeMax: 197.125
m_VBaseRangeMin: -88
m_VBaseRangeMax: 88
m_HAllowExceedBaseRangeMin: 1
......@@ -889,23 +889,23 @@ MonoBehaviour:
serializedVersion: 2
x: 0
y: 21
width: 691
width: 788.5
height: 352
m_Scale: {x: 2, y: 2}
m_Translation: {x: 345.5, y: 176}
m_Translation: {x: 394.25, y: 176}
m_MarginLeft: 0
m_MarginRight: 0
m_MarginTop: 0
m_MarginBottom: 0
m_LastShownAreaInsideMargins:
serializedVersion: 2
x: -172.75
x: -197.125
y: -88
width: 345.5
width: 394.25
height: 176
m_MinimalGUI: 1
m_defaultScale: 2
m_LastWindowPixelSize: {x: 1382, y: 746}
m_LastWindowPixelSize: {x: 1577, y: 746}
m_ClearInEditMode: 1
m_NoCameraWarning: 1
m_LowResolutionForAspectRatios: 01000000000000000000
......@@ -931,9 +931,9 @@ MonoBehaviour:
m_Tooltip:
m_Pos:
serializedVersion: 2
x: 2249
y: 726.5
width: 920
x: 244
y: 606
width: 1048
height: 250
m_ViewDataDictionary: {fileID: 0}
m_OverlayCanvas:
......
{}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册