Skip to content

Commit d174817

Browse files
committed
add uitoolkit sample
1 parent a38f119 commit d174817

36 files changed

+12565
-8250
lines changed

Assets/MainScene.unity

Lines changed: 201 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,14 @@ MonoBehaviour:
174174
Script:
175175
ScriptSource: 3
176176
SourceAsset: {fileID: 4900000, guid: 1cea8ca938b8ac346ad799e56a0afa8b, type: 3}
177-
SourcePath: react/index
177+
SourcePath: react/index#ugui
178178
SourceText:
179179
ResourcesPath:
180-
UseDevServer: 1
181-
DevServer: http://localhost:3100
180+
UseDevServer: 0
181+
DevServer: http://localhost:3100#ugui
182182
Debug: 0
183183
AwaitDebugger: 0
184-
EngineType: 0
184+
EngineType: 1
185185
AutoRender: 1
186186
BeforeStart:
187187
m_PersistentCalls:
@@ -205,7 +205,7 @@ MonoBehaviour:
205205
m_BlockingObjects: 0
206206
m_BlockingMask:
207207
serializedVersion: 2
208-
m_Bits: 4294967295
208+
m_Bits: 2147483703
209209
--- !u!114 &314699164
210210
MonoBehaviour:
211211
m_ObjectHideFlags: 0
@@ -260,9 +260,10 @@ RectTransform:
260260
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
261261
m_LocalPosition: {x: 0, y: 0, z: 0}
262262
m_LocalScale: {x: 0, y: 0, z: 0}
263+
m_ConstrainProportionsScale: 0
263264
m_Children: []
264265
m_Father: {fileID: 0}
265-
m_RootOrder: 2
266+
m_RootOrder: 4
266267
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
267268
m_AnchorMin: {x: 0, y: 0}
268269
m_AnchorMax: {x: 0, y: 0}
@@ -296,6 +297,7 @@ Transform:
296297
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
297298
m_LocalPosition: {x: 0, y: 0, z: -8}
298299
m_LocalScale: {x: 1, y: 1, z: 1}
300+
m_ConstrainProportionsScale: 0
299301
m_Children: []
300302
m_Father: {fileID: 904585850}
301303
m_RootOrder: 0
@@ -375,6 +377,7 @@ MonoBehaviour:
375377
m_EditorClassIdentifier:
376378
m_MoveRepeatDelay: 0.5
377379
m_MoveRepeatRate: 0.1
380+
m_XRTrackingOrigin: {fileID: 0}
378381
m_ActionsAsset: {fileID: -944628639613478452, guid: ca9f5fa95ffab41fb9a615ab714db018,
379382
type: 3}
380383
m_PointAction: {fileID: 1054132383583890850, guid: ca9f5fa95ffab41fb9a615ab714db018,
@@ -424,6 +427,7 @@ Transform:
424427
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
425428
m_LocalPosition: {x: 0, y: 0, z: 0}
426429
m_LocalScale: {x: 1, y: 1, z: 1}
430+
m_ConstrainProportionsScale: 0
427431
m_Children: []
428432
m_Father: {fileID: 0}
429433
m_RootOrder: 1
@@ -456,6 +460,7 @@ Transform:
456460
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
457461
m_LocalPosition: {x: 0, y: 0, z: 0}
458462
m_LocalScale: {x: 1, y: 1, z: 1}
463+
m_ConstrainProportionsScale: 0
459464
m_Children: []
460465
m_Father: {fileID: 1115769465}
461466
m_RootOrder: 2
@@ -589,6 +594,7 @@ Transform:
589594
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
590595
m_LocalPosition: {x: 0, y: 0, z: -10}
591596
m_LocalScale: {x: 1, y: 1, z: 1}
597+
m_ConstrainProportionsScale: 0
592598
m_Children: []
593599
m_Father: {fileID: 0}
594600
m_RootOrder: 0
@@ -620,6 +626,7 @@ Transform:
620626
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
621627
m_LocalPosition: {x: 0, y: 0, z: -8}
622628
m_LocalScale: {x: 1, y: 1, z: 1}
629+
m_ConstrainProportionsScale: 0
623630
m_Children: []
624631
m_Father: {fileID: 2092347002}
625632
m_RootOrder: 0
@@ -754,6 +761,7 @@ Transform:
754761
m_LocalRotation: {x: 0.1836855, y: 0.28717247, z: -0.056210883, w: 0.93841994}
755762
m_LocalPosition: {x: 0, y: 0, z: 0}
756763
m_LocalScale: {x: 1, y: 1, z: 1}
764+
m_ConstrainProportionsScale: 0
757765
m_Children:
758766
- {fileID: 315642567}
759767
m_Father: {fileID: 1827512584}
@@ -788,6 +796,7 @@ Transform:
788796
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
789797
m_LocalPosition: {x: 0, y: 0, z: 0}
790798
m_LocalScale: {x: 1, y: 1, z: 1}
799+
m_ConstrainProportionsScale: 0
791800
m_Children: []
792801
m_Father: {fileID: 1827512584}
793802
m_RootOrder: 1
@@ -881,13 +890,14 @@ Transform:
881890
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
882891
m_LocalPosition: {x: 1000, y: 1000, z: 1000}
883892
m_LocalScale: {x: 1, y: 1, z: 1}
893+
m_ConstrainProportionsScale: 0
884894
m_Children:
885895
- {fileID: 2092347002}
886896
- {fileID: 1578988501}
887897
- {fileID: 335625911}
888898
- {fileID: 1154955619}
889899
m_Father: {fileID: 0}
890-
m_RootOrder: 4
900+
m_RootOrder: 3
891901
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
892902
--- !u!1 &1154955618
893903
GameObject:
@@ -917,6 +927,7 @@ Transform:
917927
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
918928
m_LocalPosition: {x: 0, y: 0, z: 0}
919929
m_LocalScale: {x: 1, y: 1, z: 1}
930+
m_ConstrainProportionsScale: 0
920931
m_Children: []
921932
m_Father: {fileID: 1115769465}
922933
m_RootOrder: 3
@@ -998,6 +1009,7 @@ Transform:
9981009
m_LocalRotation: {x: 0.3309591, y: -0.07329934, z: 0.6747346, w: 0.65561163}
9991010
m_LocalPosition: {x: 0, y: 0, z: 0}
10001011
m_LocalScale: {x: 1, y: 1, z: 1}
1012+
m_ConstrainProportionsScale: 0
10011013
m_Children: []
10021014
m_Father: {fileID: 1827512584}
10031015
m_RootOrder: 2
@@ -1092,6 +1104,7 @@ Transform:
10921104
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
10931105
m_LocalPosition: {x: 0, y: 0, z: 0}
10941106
m_LocalScale: {x: 1, y: 1, z: 1}
1107+
m_ConstrainProportionsScale: 0
10951108
m_Children: []
10961109
m_Father: {fileID: 1115769465}
10971110
m_RootOrder: 1
@@ -1172,12 +1185,191 @@ Transform:
11721185
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
11731186
m_LocalPosition: {x: 0, y: 0, z: 0}
11741187
m_LocalScale: {x: 1, y: 1, z: 1}
1188+
m_ConstrainProportionsScale: 0
11751189
m_Children:
11761190
- {fileID: 904585850}
11771191
- {fileID: 909049342}
11781192
- {fileID: 1290528457}
11791193
m_Father: {fileID: 0}
1180-
m_RootOrder: 3
1194+
m_RootOrder: 2
1195+
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1196+
--- !u!1 &1963600156
1197+
GameObject:
1198+
m_ObjectHideFlags: 0
1199+
m_CorrespondingSourceObject: {fileID: 0}
1200+
m_PrefabInstance: {fileID: 0}
1201+
m_PrefabAsset: {fileID: 0}
1202+
serializedVersion: 6
1203+
m_Component:
1204+
- component: {fileID: 1963600160}
1205+
- component: {fileID: 1963600159}
1206+
- component: {fileID: 1963600158}
1207+
- component: {fileID: 1963600157}
1208+
m_Layer: 0
1209+
m_Name: REACT_UI_DOCUMENT
1210+
m_TagString: Untagged
1211+
m_Icon: {fileID: 0}
1212+
m_NavMeshLayer: 0
1213+
m_StaticEditorFlags: 0
1214+
m_IsActive: 1
1215+
--- !u!114 &1963600157
1216+
MonoBehaviour:
1217+
m_ObjectHideFlags: 0
1218+
m_CorrespondingSourceObject: {fileID: 0}
1219+
m_PrefabInstance: {fileID: 0}
1220+
m_PrefabAsset: {fileID: 0}
1221+
m_GameObject: {fileID: 1963600156}
1222+
m_Enabled: 1
1223+
m_EditorHideFlags: 0
1224+
m_Script: {fileID: 11500000, guid: d42d223e6bf9b24498b30f20ed4341fb, type: 3}
1225+
m_Name:
1226+
m_EditorClassIdentifier:
1227+
Globals:
1228+
Entries: []
1229+
Script:
1230+
ScriptSource: 3
1231+
SourceAsset: {fileID: 0}
1232+
SourcePath: react/index#uitoolkit
1233+
SourceText:
1234+
ResourcesPath:
1235+
UseDevServer: 0
1236+
DevServer: http://localhost:3100#uitoolkit
1237+
Debug: 0
1238+
AwaitDebugger: 0
1239+
EngineType: 0
1240+
AutoRender: 1
1241+
BeforeStart:
1242+
m_PersistentCalls:
1243+
m_Calls: []
1244+
AfterStart:
1245+
m_PersistentCalls:
1246+
m_Calls: []
1247+
--- !u!82 &1963600158
1248+
AudioSource:
1249+
m_ObjectHideFlags: 0
1250+
m_CorrespondingSourceObject: {fileID: 0}
1251+
m_PrefabInstance: {fileID: 0}
1252+
m_PrefabAsset: {fileID: 0}
1253+
m_GameObject: {fileID: 1963600156}
1254+
m_Enabled: 1
1255+
serializedVersion: 4
1256+
OutputAudioMixerGroup: {fileID: 0}
1257+
m_audioClip: {fileID: 0}
1258+
m_PlayOnAwake: 1
1259+
m_Volume: 1
1260+
m_Pitch: 1
1261+
Loop: 0
1262+
Mute: 0
1263+
Spatialize: 0
1264+
SpatializePostEffects: 0
1265+
Priority: 128
1266+
DopplerLevel: 1
1267+
MinDistance: 1
1268+
MaxDistance: 500
1269+
Pan2D: 0
1270+
rolloffMode: 0
1271+
BypassEffects: 0
1272+
BypassListenerEffects: 0
1273+
BypassReverbZones: 0
1274+
rolloffCustomCurve:
1275+
serializedVersion: 2
1276+
m_Curve:
1277+
- serializedVersion: 3
1278+
time: 0
1279+
value: 1
1280+
inSlope: 0
1281+
outSlope: 0
1282+
tangentMode: 0
1283+
weightedMode: 0
1284+
inWeight: 0.33333334
1285+
outWeight: 0.33333334
1286+
- serializedVersion: 3
1287+
time: 1
1288+
value: 0
1289+
inSlope: 0
1290+
outSlope: 0
1291+
tangentMode: 0
1292+
weightedMode: 0
1293+
inWeight: 0.33333334
1294+
outWeight: 0.33333334
1295+
m_PreInfinity: 2
1296+
m_PostInfinity: 2
1297+
m_RotationOrder: 4
1298+
panLevelCustomCurve:
1299+
serializedVersion: 2
1300+
m_Curve:
1301+
- serializedVersion: 3
1302+
time: 0
1303+
value: 0
1304+
inSlope: 0
1305+
outSlope: 0
1306+
tangentMode: 0
1307+
weightedMode: 0
1308+
inWeight: 0.33333334
1309+
outWeight: 0.33333334
1310+
m_PreInfinity: 2
1311+
m_PostInfinity: 2
1312+
m_RotationOrder: 4
1313+
spreadCustomCurve:
1314+
serializedVersion: 2
1315+
m_Curve:
1316+
- serializedVersion: 3
1317+
time: 0
1318+
value: 0
1319+
inSlope: 0
1320+
outSlope: 0
1321+
tangentMode: 0
1322+
weightedMode: 0
1323+
inWeight: 0.33333334
1324+
outWeight: 0.33333334
1325+
m_PreInfinity: 2
1326+
m_PostInfinity: 2
1327+
m_RotationOrder: 4
1328+
reverbZoneMixCustomCurve:
1329+
serializedVersion: 2
1330+
m_Curve:
1331+
- serializedVersion: 3
1332+
time: 0
1333+
value: 1
1334+
inSlope: 0
1335+
outSlope: 0
1336+
tangentMode: 0
1337+
weightedMode: 0
1338+
inWeight: 0.33333334
1339+
outWeight: 0.33333334
1340+
m_PreInfinity: 2
1341+
m_PostInfinity: 2
1342+
m_RotationOrder: 4
1343+
--- !u!114 &1963600159
1344+
MonoBehaviour:
1345+
m_ObjectHideFlags: 0
1346+
m_CorrespondingSourceObject: {fileID: 0}
1347+
m_PrefabInstance: {fileID: 0}
1348+
m_PrefabAsset: {fileID: 0}
1349+
m_GameObject: {fileID: 1963600156}
1350+
m_Enabled: 1
1351+
m_EditorHideFlags: 0
1352+
m_Script: {fileID: 19102, guid: 0000000000000000e000000000000000, type: 0}
1353+
m_Name:
1354+
m_EditorClassIdentifier:
1355+
m_PanelSettings: {fileID: 11400000, guid: a2de298c1e3f9ba48b8d8ceeae384194, type: 2}
1356+
m_ParentUI: {fileID: 0}
1357+
sourceAsset: {fileID: 0}
1358+
m_SortingOrder: 0
1359+
--- !u!4 &1963600160
1360+
Transform:
1361+
m_ObjectHideFlags: 0
1362+
m_CorrespondingSourceObject: {fileID: 0}
1363+
m_PrefabInstance: {fileID: 0}
1364+
m_PrefabAsset: {fileID: 0}
1365+
m_GameObject: {fileID: 1963600156}
1366+
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
1367+
m_LocalPosition: {x: 0, y: 0, z: 0}
1368+
m_LocalScale: {x: 1, y: 1, z: 1}
1369+
m_ConstrainProportionsScale: 0
1370+
m_Children: []
1371+
m_Father: {fileID: 0}
1372+
m_RootOrder: 5
11811373
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
11821374
--- !u!1 &2092347001
11831375
GameObject:
@@ -1205,6 +1397,7 @@ Transform:
12051397
m_LocalRotation: {x: 0.1836855, y: 0.28717247, z: -0.056210883, w: 0.93841994}
12061398
m_LocalPosition: {x: 0, y: 0, z: 0}
12071399
m_LocalScale: {x: 1, y: 1, z: 1}
1400+
m_ConstrainProportionsScale: 0
12081401
m_Children:
12091402
- {fileID: 714836767}
12101403
m_Father: {fileID: 1115769465}

0 commit comments

Comments
 (0)