Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sdk-public
unity_sdk_demo
Commits
27009a1e
"vscode:/vscode.git/clone" did not exist on "8a58d58a0547cec342e36f3b970a793726374541"
Commit
27009a1e
authored
Jan 16, 2026
by
lujie
Browse files
feat(app): unity deal
parent
a8b8035c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Assets/Plugins/OpenHarmony/SdkPlugin.ets
View file @
27009a1e
import { AbilityConstant, common, Want } from "@kit.AbilityKit";
import { fastSdk, InitResult, LogUtil } from "fastsdk";
import { window } from "@kit.ArkUI";
import { processMgr } from "fastsdk/src/main/ets/utils/PageManager";
import { GoodsInfo } from "fastsdk/src/main/ets/model/GoodsInfo";
import { LoginResult } from "fastsdk/src/main/ets/model/LoginResult";
import { PayParams } from "fastsdk/src/main/ets/model/PayParams";
...
...
@@ -81,7 +80,7 @@ class SdkPlugin {
},
onExitSuccess: (result: string) => {
LogUtil.info('退出成功:' + result);
processMgr.exit(0)
this.context.terminateSelf();
}
};
fastSdk.hlAccountListener = {
...
...
Assets/Plugins/OpenHarmony/assets/fastsdk.har
View file @
27009a1e
No preview for this file type
UserSettings/Layouts/default-2022.dwlt
View file @
27009a1e
...
...
@@ -19,7 +19,7 @@ MonoBehaviour:
width
:
1920
height
:
1037
m_ShowMode
:
4
m_Title
:
Hierarchy
m_Title
:
Project
m_RootView
:
{
fileID
:
2
}
m_MinSize
:
{
x
:
875
,
y
:
300
}
m_MaxSize
:
{
x
:
10000
,
y
:
10000
}
...
...
@@ -119,7 +119,7 @@ MonoBehaviour:
m_MinSize
:
{
x
:
300
,
y
:
100
}
m_MaxSize
:
{
x
:
24288
,
y
:
16192
}
vertical
:
0
controlID
:
85
controlID
:
104
draggingID
:
0
---
!u!114
&6
MonoBehaviour
:
...
...
@@ -140,7 +140,7 @@ MonoBehaviour:
serializedVersion
:
2
x
:
0
y
:
0
width
:
1
372
width
:
1
250
height
:
987
m_MinSize
:
{
x
:
200
,
y
:
100
}
m_MaxSize
:
{
x
:
16192
,
y
:
16192
}
...
...
@@ -166,8 +166,8 @@ MonoBehaviour:
serializedVersion
:
2
x
:
0
y
:
0
width
:
1
372
height
:
5
47
width
:
1
250
height
:
47
4
m_MinSize
:
{
x
:
200
,
y
:
50
}
m_MaxSize
:
{
x
:
16192
,
y
:
8096
}
vertical
:
0
...
...
@@ -190,10 +190,10 @@ MonoBehaviour:
serializedVersion
:
2
x
:
0
y
:
0
width
:
3
5
3
height
:
5
47
m_MinSize
:
{
x
:
20
1
,
y
:
2
21
}
m_MaxSize
:
{
x
:
400
1
,
y
:
40
21
}
width
:
3
2
3
height
:
47
4
m_MinSize
:
{
x
:
20
0
,
y
:
2
00
}
m_MaxSize
:
{
x
:
400
0
,
y
:
40
00
}
m_ActualView
:
{
fileID
:
13
}
m_Panes
:
-
{
fileID
:
13
}
...
...
@@ -214,12 +214,12 @@ MonoBehaviour:
m_Children
:
[]
m_Position
:
serializedVersion
:
2
x
:
3
5
3
x
:
3
2
3
y
:
0
width
:
1019
height
:
5
47
m_MinSize
:
{
x
:
20
2
,
y
:
2
21
}
m_MaxSize
:
{
x
:
400
2
,
y
:
40
21
}
width
:
927
height
:
47
4
m_MinSize
:
{
x
:
20
0
,
y
:
2
00
}
m_MaxSize
:
{
x
:
400
0
,
y
:
40
00
}
m_ActualView
:
{
fileID
:
14
}
m_Panes
:
-
{
fileID
:
14
}
...
...
@@ -236,24 +236,24 @@ MonoBehaviour:
m_Enabled
:
1
m_EditorHideFlags
:
1
m_Script
:
{
fileID
:
12006
,
guid
:
0000000000000000e000000000000000
,
type
:
0
}
m_Name
:
ConsoleWindow
m_Name
:
ProjectBrowser
m_EditorClassIdentifier
:
m_Children
:
[]
m_Position
:
serializedVersion
:
2
x
:
0
y
:
5
47
width
:
1
372
height
:
440
m_MinSize
:
{
x
:
10
1
,
y
:
1
21
}
m_MaxSize
:
{
x
:
4
001
,
y
:
4
021
}
m_ActualView
:
{
fileID
:
1
6
}
y
:
47
4
width
:
1
250
height
:
513
m_MinSize
:
{
x
:
23
1
,
y
:
2
7
1
}
m_MaxSize
:
{
x
:
10
001
,
y
:
10
021
}
m_ActualView
:
{
fileID
:
1
5
}
m_Panes
:
-
{
fileID
:
15
}
-
{
fileID
:
16
}
-
{
fileID
:
17
}
m_Selected
:
1
m_LastSelected
:
0
m_Selected
:
0
m_LastSelected
:
1
---
!u!114
&11
MonoBehaviour
:
m_ObjectHideFlags
:
52
...
...
@@ -269,9 +269,9 @@ MonoBehaviour:
m_Children
:
[]
m_Position
:
serializedVersion
:
2
x
:
1
372
x
:
1
250
y
:
0
width
:
548
width
:
670
height
:
987
m_MinSize
:
{
x
:
276
,
y
:
71
}
m_MaxSize
:
{
x
:
4001
,
y
:
4021
}
...
...
@@ -300,10 +300,10 @@ MonoBehaviour:
m_Tooltip
:
m_Pos
:
serializedVersion
:
2
x
:
33
3
y
:
8
3
width
:
101
3.5
height
:
516
x
:
291
3
y
:
7
3
width
:
101
7
height
:
453
m_SerializedDataModeController
:
m_DataMode
:
0
m_PreferredDataMode
:
0
...
...
@@ -368,8 +368,8 @@ MonoBehaviour:
serializedVersion
:
2
x
:
2560
y
:
73
width
:
3
5
2
height
:
526
width
:
3
2
2
height
:
453
m_SerializedDataModeController
:
m_DataMode
:
0
m_PreferredDataMode
:
0
...
...
@@ -385,7 +385,7 @@ MonoBehaviour:
scrollPos
:
{
x
:
0
,
y
:
0
}
m_SelectedIDs
:
m_LastClickedID
:
0
m_ExpandedIDs
:
84eeffffd0eeffffacf0ffffdaf6ffff26f7ffff02f9ffff5a
faffff
m_ExpandedIDs
:
ce
faffff
m_RenameOverlay
:
m_UserAcceptedRename
:
0
m_Name
:
...
...
@@ -429,10 +429,10 @@ MonoBehaviour:
m_Tooltip
:
m_Pos
:
serializedVersion
:
2
x
:
2
91
3
x
:
2
88
3
y
:
73
width
:
1017
height
:
526
width
:
925
height
:
453
m_SerializedDataModeController
:
m_DataMode
:
0
m_PreferredDataMode
:
0
...
...
@@ -1075,9 +1075,9 @@ MonoBehaviour:
m_Pos
:
serializedVersion
:
2
x
:
2560
y
:
480
width
:
1
371
height
:
559
y
:
547
width
:
1
249
height
:
492
m_SerializedDataModeController
:
m_DataMode
:
0
m_PreferredDataMode
:
0
...
...
@@ -1099,7 +1099,7 @@ MonoBehaviour:
m_SkipHidden
:
0
m_SearchArea
:
1
m_Folders
:
-
Assets/
Plugins/Editor
-
Assets/
Scripts/sdk/util
m_Globs
:
[]
m_OriginalText
:
m_ImportLogFlags
:
0
...
...
@@ -1107,16 +1107,16 @@ MonoBehaviour:
m_ViewMode
:
1
m_StartGridSize
:
64
m_LastFolders
:
-
Assets/
Plugins/Editor
-
Assets/
Scripts/sdk/util
m_LastFoldersGridSize
:
-1
m_LastProjectPath
:
D:\work\REMOTE_RESORURCE\UnityDemo
m_LockTracker
:
m_IsLocked
:
0
m_FolderTreeState
:
scrollPos
:
{
x
:
0
,
y
:
0
}
m_SelectedIDs
:
1
2670000
m_LastClickedID
:
26
386
m_ExpandedIDs
:
00000000
68
670000
6a
670000
6c
670000
6e
670000
70
670000
7
2670000
m_SelectedIDs
:
4
2670000
m_LastClickedID
:
26
434
m_ExpandedIDs
:
00000000
1a
670000
1c
670000
1e
670000
20
670000
22
6700002
4
670000
0
0ca9a3b
m_RenameOverlay
:
m_UserAcceptedRename
:
0
m_Name
:
...
...
@@ -1144,7 +1144,7 @@ MonoBehaviour:
scrollPos
:
{
x
:
0
,
y
:
0
}
m_SelectedIDs
:
m_LastClickedID
:
0
m_ExpandedIDs
:
00000000
68
670000
6a
670000
6c
670000
6e
670000
70
670000
7
2670000
m_ExpandedIDs
:
00000000
1a
670000
1c
670000
1e
670000
20
670000
22
6700002
4
670000
m_RenameOverlay
:
m_UserAcceptedRename
:
0
m_Name
:
...
...
@@ -1171,7 +1171,7 @@ MonoBehaviour:
m_ListAreaState
:
m_SelectedInstanceIDs
:
m_LastClickedInstanceID
:
0
m_HadKeyboardFocusLastEvent
:
1
m_HadKeyboardFocusLastEvent
:
0
m_ExpandedInstanceIDs
:
c6230000b25c0000245a000000000000
m_RenameOverlay
:
m_UserAcceptedRename
:
0
...
...
@@ -1221,9 +1221,9 @@ MonoBehaviour:
m_Pos
:
serializedVersion
:
2
x
:
2560
y
:
6
20
y
:
6
18
width
:
1371
height
:
41
9
height
:
4
2
1
m_SerializedDataModeController
:
m_DataMode
:
0
m_PreferredDataMode
:
0
...
...
@@ -1289,9 +1289,9 @@ MonoBehaviour:
m_Tooltip
:
m_Pos
:
serializedVersion
:
2
x
:
3
932
x
:
3
810
y
:
73
width
:
547
width
:
669
height
:
966
m_SerializedDataModeController
:
m_DataMode
:
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment