Migrate shaders to URP and add loading screen

Reworks multiple shaders and materials for URP compatibility and adds a Loading screen/scene and a few model imports. Key changes:
- Converted ProBuilder standard vertex-color shader and several particle/surface shaders to URP HLSL passes (UniversalForward, ShadowCaster, Depth, DepthNormals) preserving base texture * tint * vertex color, normal map and PBR parameters.
- Updated particle SurfaceShader_VC to a URP forward pass and simplified lighting to use URP shader library helpers.
- Updated materials (landMark, tile) to point to project textures, adjust keywords/flags (e.g. XRMotionVectorsPass, disable ShadowCaster for one), tweak tiling and base color values.
- Added a Loading screen UI (UXML, USS) and LoadingScreenController.cs plus a new Loading scene and scene metadata.
- Imported new FBX assets (T-Pose, Untitled) and updated Editor build settings / project settings to include the new Loading scene.
These changes migrate rendering code to the Universal Render Pipeline and add a basic loading UI/scene, while updating materials and project settings accordingly.
This commit is contained in:
Robii Aragon
2026-02-23 21:47:59 -08:00
parent 31ada61565
commit 0e961ba4b1
37 changed files with 2867 additions and 1155 deletions

View File

@@ -323,6 +323,38 @@ ModelImporter:
value: {x: 0, y: 0, z: 0}
length: 0
modified: 0
- boneName: Anular_01.L
humanName: Left Middle Proximal
limit:
min: {x: 0, y: 0, z: 0}
max: {x: 0, y: 0, z: 0}
value: {x: 0, y: 0, z: 0}
length: 0
modified: 0
- boneName: Anular_02.L
humanName: Left Middle Intermediate
limit:
min: {x: 0, y: 0, z: 0}
max: {x: 0, y: 0, z: 0}
value: {x: 0, y: 0, z: 0}
length: 0
modified: 0
- boneName: Anular_01.R
humanName: Right Middle Proximal
limit:
min: {x: 0, y: 0, z: 0}
max: {x: 0, y: 0, z: 0}
value: {x: 0, y: 0, z: 0}
length: 0
modified: 0
- boneName: Anular_02.R
humanName: Right Middle Intermediate
limit:
min: {x: 0, y: 0, z: 0}
max: {x: 0, y: 0, z: 0}
value: {x: 0, y: 0, z: 0}
length: 0
modified: 0
skeleton:
- name: SM_Alien_Flaco(Clone)
parentName:
@@ -337,193 +369,193 @@ ModelImporter:
- name: Control_Maestro
parentName: Armature
position: {x: -0.0000000023841857, y: 0.00033604132, z: 0.00011200547}
rotation: {x: 0.7071068, y: -0, z: -0, w: 0.7071067}
rotation: {x: 0.7071068, y: 0, z: -0, w: 0.7071067}
scale: {x: 1, y: 1, z: 1}
- name: Control_Cadera
parentName: Control_Maestro
position: {x: -0, y: 0.006137542, z: -0.0004025848}
rotation: {x: 0.7069518, y: -0.014808983, z: 0.7069516, w: -0.014808953}
scale: {x: 1, y: 1, z: 1.0000007}
rotation: {x: 0.7069518, y: -0.014809673, z: 0.7069516, w: -0.014808178}
scale: {x: 0.99999994, y: 0.9999999, z: 1.0000007}
- name: Cadera
parentName: Control_Cadera
position: {x: -9.877112e-10, y: 0.0006470664, z: -0.0053928564}
rotation: {x: -0.00000029802325, y: -0.000000015832486, z: -0.9999992, w: -0.0012740447}
scale: {x: 1.0000002, y: 1, z: 1.0000001}
position: {x: -1.8627199e-11, y: 0.00064706436, z: -1.110223e-16}
rotation: {x: 0.00000031376155, y: 1.8329259e-13, z: 0.9999992, w: 0.001274065}
scale: {x: 0.99999994, y: 0.9999999, z: 1}
- name: Columna_01
parentName: Cadera
position: {x: 3.7252153e-11, y: 0.00068895385, z: 7.105427e-17}
rotation: {x: -0.000000029034593, y: 0.00000026859297, z: 0.044297244, w: 0.99901843}
scale: {x: 1.0000001, y: 0.9999998, z: 1.000001}
rotation: {x: 0.000000005931511, y: 0.00000017952871, z: 0.04429725, w: 0.99901843}
scale: {x: 0.9999999, y: 0.9999997, z: 1.0000006}
- name: Columna_02
parentName: Columna_01
position: {x: 7.45059e-11, y: 0.0006906298, z: -8.659739e-17}
rotation: {x: -0.00000014596213, y: -0.00000005170304, z: -0.06655902, w: 0.9977825}
scale: {x: 1, y: 1, z: 1.0000006}
rotation: {x: 0.0000000029263054, y: -0.0000000018330778, z: -0.06655902, w: 0.99778247}
scale: {x: 0.9999999, y: 0.99999994, z: 1}
- name: Columna_03
parentName: Columna_02
position: {x: 2.793978e-11, y: 0.0012618416, z: -1.4294121e-17}
rotation: {x: 0.00000014637602, y: 0.000000058367913, z: 0.027846452, w: 0.9996122}
scale: {x: 1.0000004, y: 0.9999999, z: 1.0000001}
rotation: {x: -0.0000000012053405, y: 0.00000000115632, z: 0.027846439, w: 0.9996122}
scale: {x: 0.99999994, y: 0.9999999, z: 1}
- name: Cuello
parentName: Columna_03
position: {x: -1.117586e-10, y: 0.0015918013, z: 1.7763568e-17}
rotation: {x: -2.0770585e-10, y: -0.000000088852616, z: -0.025221389, w: 0.99968195}
scale: {x: 0.9999996, y: 0.9999996, z: 1.0000008}
rotation: {x: 0.0000000010942879, y: -0.000000001054476, z: -0.025221363, w: 0.9996819}
scale: {x: 0.99999976, y: 0.99999964, z: 1.0000007}
- name: Cabeza
parentName: Cuello
position: {x: -1.0243382e-11, y: 0.00085936184, z: -5.359269e-17}
rotation: {x: -9.06463e-10, y: -9.516724e-10, z: 0.039243814, w: 0.9992297}
scale: {x: 1.0000004, y: 1.0000001, z: 1.0000001}
rotation: {x: -0.0000000017209099, y: 0.0000000015181731, z: 0.0392438, w: 0.99922967}
scale: {x: 1, y: 1, z: 1}
- name: Hombro.L
parentName: Columna_03
position: {x: -0.000018270845, y: 0.0012299367, z: -0.00063639355}
rotation: {x: -0.6856984, y: 0.017299687, z: -0.018353242, w: 0.7274487}
scale: {x: 0.99999994, y: 0.9999999, z: 0.9999997}
rotation: {x: -0.6856985, y: 0.017299628, z: -0.018353116, w: 0.7274486}
scale: {x: 1, y: 0.99999994, z: 0.9999999}
- name: Brazo.L
parentName: Hombro.L
position: {x: 5.5872817e-11, y: 0.0008655179, z: -0.0000000010999686}
rotation: {x: -0.055398315, y: 0.0070168804, z: 0.0010979194, w: 0.99843913}
scale: {x: 1.0000006, y: 1, z: 1.0000007}
rotation: {x: -0.37750757, y: 0.02499395, z: 0.010650709, w: 0.92560786}
scale: {x: 1.0000002, y: 1, z: 1.0000005}
- name: Antebrazo.L
parentName: Brazo.L
position: {x: -3.8417054e-11, y: 0.0023671936, z: -2.0605512e-10}
rotation: {x: 0.031437233, y: -0.9978987, z: -0.028597986, w: -0.04891016}
scale: {x: 0.99999934, y: 1.0000011, z: 1.0000008}
rotation: {x: -0.18750848, y: 0.98001975, z: 0.041061115, w: 0.052113693}
scale: {x: 0.99999976, y: 1.0000012, z: 1.0000006}
- name: Mano.L
parentName: Antebrazo.L
position: {x: 1.0710209e-10, y: 0.0022193054, z: -2.43308e-10}
rotation: {x: -0.04929869, y: -0.68503034, z: -0.070268765, w: 0.72344}
scale: {x: 0.9999997, y: 1, z: 0.9999996}
rotation: {x: -0.045641407, y: -0.7167203, z: -0.08614931, w: 0.69051224}
scale: {x: 1.0000001, y: 1.0000001, z: 0.9999995}
- name: "Me\xF1ique_01.L"
parentName: Mano.L
position: {x: -0.000053266598, y: 0.0005026223, z: 0.00027815744}
rotation: {x: 0.059633426, y: -0.06618709, z: -0.046870466, w: 0.9949203}
scale: {x: 1, y: 1.0000011, z: 0.9999999}
rotation: {x: 0.0017495392, y: -0.06028347, z: -0.098125495, w: 0.993345}
scale: {x: 1, y: 1, z: 1}
- name: "Me\xF1ique_02.L"
parentName: "Me\xF1ique_01.L"
position: {x: -7.4505804e-11, y: 0.00051521044, z: -3.7252902e-11}
rotation: {x: 0.06154576, y: 0.03132929, z: -0.12486809, w: 0.98976696}
scale: {x: 0.9999995, y: 1.0000013, z: 1.0000013}
rotation: {x: 0.061545815, y: 0.031329125, z: -0.12486831, w: 0.9897669}
scale: {x: 1.0000002, y: 1.0000001, z: 1.0000001}
- name: Pulgar_01.L
parentName: Mano.L
position: {x: 0.00014655155, y: 0.00026031132, z: -0.00036921585}
rotation: {x: -0.03219802, y: 0.7281188, z: 0.048705757, w: -0.6829598}
scale: {x: 0.99999976, y: 1.0000004, z: 0.9999998}
rotation: {x: -0.30302718, y: -0.6826305, z: 0.11090358, w: 0.6556604}
scale: {x: 0.99999994, y: 0.9999998, z: 1}
- name: Pulgar_02.L
parentName: Pulgar_01.L
position: {x: -4.4703483e-10, y: 0.00036708667, z: -7.4505804e-11}
rotation: {x: 0.05718316, y: -0.022504324, z: -0.3347756, w: 0.940292}
scale: {x: 1.0000005, y: 0.9999991, z: 1}
- name: Hombro.R
parentName: Columna_03
position: {x: -0.000018270974, y: 0.0012299367, z: 0.00063639355}
rotation: {x: -0.018353073, y: -0.72744864, z: -0.6856985, w: -0.017299796}
scale: {x: 0.9999996, y: 0.9999998, z: 0.9999997}
- name: Brazo.R
parentName: Hombro.R
position: {x: -8.879968e-11, y: 0.00086551707, z: 0.0000000010493726}
rotation: {x: 0.055398025, y: 0.00701685, z: 0.0010981858, w: -0.99843913}
scale: {x: 1.0000005, y: 0.9999992, z: 1.0000001}
- name: Antebrazo.R
parentName: Brazo.R
position: {x: -3.0267983e-11, y: 0.002367194, z: -1.7695129e-10}
rotation: {x: -0.03143719, y: -0.9978987, z: -0.028597627, w: 0.04890988}
scale: {x: 0.99999994, y: 1.0000001, z: 1.0000014}
- name: Mano.R
parentName: Antebrazo.R
position: {x: 1.3737007e-10, y: 0.002219306, z: -7.380731e-10}
rotation: {x: -0.049298815, y: 0.68503004, z: 0.07026887, w: 0.72344035}
scale: {x: 0.9999999, y: 1.0000006, z: 0.99999976}
- name: "Me\xF1ique_01.R"
parentName: Mano.R
position: {x: 0.000053266995, y: 0.00050262344, z: 0.00027815788}
rotation: {x: 0.059633113, y: 0.06618615, z: 0.04687029, w: 0.9949204}
scale: {x: 0.9999994, y: 1.0000002, z: 0.99999976}
- name: "Me\xF1ique_02.R"
parentName: "Me\xF1ique_01.R"
position: {x: 4.842877e-10, y: 0.00051521056, z: 2.2351741e-10}
rotation: {x: 0.06154663, y: -0.031326823, z: 0.12486694, w: 0.9897671}
scale: {x: 0.9999991, y: 1.0000012, z: 1.0000006}
- name: Pulgar_01.R
parentName: Mano.R
position: {x: -0.00014678387, y: 0.00026057783, z: -0.00036937805}
rotation: {x: -0.29425836, y: 0.6667913, z: -0.25941947, w: 0.6336427}
scale: {x: 1, y: 1.0000001, z: 0.99999964}
- name: Pulgar_02.R
parentName: Pulgar_01.R
position: {x: 3.7252902e-11, y: 0.00036708676, z: 8.1956386e-10}
rotation: {x: 0.057179954, y: 0.0224972, z: 0.33477408, w: 0.9402929}
scale: {x: 0.9999995, y: 0.9999995, z: 1.0000001}
- name: Muslo.L
parentName: Cadera
position: {x: -0.00013251555, y: -0.00007523841, z: -0.0004844876}
rotation: {x: -0.0017118786, y: -0.036809023, z: 0.9978641, w: 0.05393982}
scale: {x: 1.0000052, y: 1.0000004, z: 1.0000032}
- name: Pierna.L
parentName: Muslo.L
position: {x: -8.8475643e-11, y: 0.0025338887, z: 1.3737007e-10}
rotation: {x: 0.028677674, y: -0.0047905045, z: 0.14092907, w: 0.98959273}
scale: {x: 0.9999997, y: 1.0000005, z: 0.99999976}
- name: Bone.019.L
parentName: Pierna.L
position: {x: -2.3283064e-12, y: 0.0025667772, z: 8.731149e-12}
rotation: {x: 0.0035611107, y: -0.0000031646337, z: -0.63241124, w: 0.77462465}
scale: {x: 0.9999994, y: 1.0000005, z: 1}
- name: Bone.020.L
parentName: Bone.019.L
position: {x: -1.4988472e-11, y: 0.00066478376, z: -2.2409949e-11}
rotation: {x: -0.0016433543, y: 0.0000017354788, z: -0.16130741, w: 0.9869029}
scale: {x: 1.0000012, y: 0.999999, z: 0.9999999}
- name: Muslo.R
parentName: Cadera
position: {x: -0.00013251524, y: -0.00007523837, z: 0.00048448765}
rotation: {x: -0.9978639, y: 0.0539402, z: 0.001712621, w: -0.03681417}
scale: {x: 1.0000076, y: 1.0000006, z: 1.0000039}
- name: Pierna.R
parentName: Muslo.R
position: {x: 3.259629e-11, y: 0.0025338891, z: 5.5879353e-11}
rotation: {x: 0.028684273, y: 0.0047907936, z: -0.14092897, w: 0.98959255}
scale: {x: 1.0000006, y: 1.0000005, z: 1.0000002}
- name: Bone.019.R
parentName: Pierna.R
position: {x: 2.561137e-11, y: 0.0025667765, z: -6.635673e-11}
rotation: {x: -0.0035594585, y: -0.0000045783813, z: -0.6324105, w: -0.77462524}
scale: {x: 0.9999995, y: 1.000001, z: 1.0000002}
- name: Bone.020.R
parentName: Bone.019.R
position: {x: 4.10364e-11, y: 0.00066478347, z: 8.731149e-12}
rotation: {x: -0.0016435446, y: -0.0000017841514, z: 0.16130748, w: 0.9869029}
scale: {x: 1.0000018, y: 0.99999815, z: 0.9999999}
rotation: {x: 0.057183444, y: -0.022504607, z: -0.3347757, w: 0.9402919}
scale: {x: 1.0000001, y: 1.0000001, z: 1}
- name: Control_Mano.L
parentName: Control_Maestro
position: {x: -0.0049239215, y: 0.0066548553, z: 0.0007486214}
rotation: {x: 0.8603059, y: -0.4121435, z: -0.17705442, w: 0.24220505}
scale: {x: 0.99999994, y: 0.9999998, z: 0.99999976}
parentName: Mano.L
position: {x: 0, y: 0, z: 0}
rotation: {x: 0.0000010877847, y: 0.00000044703478, z: -0.0000014640389, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Anular_01.L
parentName: Control_Mano.L
position: {x: -0.006223, y: 0.002458, z: 0.003355}
rotation: {x: 0.031104956, y: 0.0028279054, z: 0.4471851, w: 0.893896}
scale: {x: 1.0000001, y: 1, z: 1.0000001}
position: {x: -0.000007491335, y: 0.0005582014, z: -0.000102688144}
rotation: {x: 0.02570744, y: 0.017738154, z: -0.04940956, w: 0.9982901}
scale: {x: 0.99999994, y: 1, z: 1.0000001}
- name: Anular_02.L
parentName: Anular_01.L
position: {x: -3.9115547e-10, y: 0.00047456502, z: -2.3283064e-10}
rotation: {x: 0.048215248, y: 0.010430899, z: -0.12068695, w: 0.9914642}
scale: {x: 0.99999994, y: 1.0000006, z: 1.0000004}
rotation: {x: 0.048215307, y: 0.010430904, z: -0.120686986, w: 0.9914642}
scale: {x: 1.0000001, y: 0.9999999, z: 1}
- name: Hombro.R
parentName: Columna_03
position: {x: -0.000018270974, y: 0.0012299367, z: 0.00063639355}
rotation: {x: 0.018353121, y: 0.7274486, z: 0.6856985, w: 0.017299686}
scale: {x: 1, y: 0.9999998, z: 0.9999998}
- name: Brazo.R
parentName: Hombro.R
position: {x: -8.879968e-11, y: 0.00086551707, z: 0.0000000010493726}
rotation: {x: -0.37750697, y: -0.024994487, z: -0.010652421, w: 0.9256081}
scale: {x: 1.0000004, y: 0.99999946, z: 0.99999994}
- name: Antebrazo.R
parentName: Brazo.R
position: {x: -3.0267983e-11, y: 0.002367194, z: -1.7695129e-10}
rotation: {x: 0.18750487, y: 0.9800205, z: 0.041060213, w: -0.052113622}
scale: {x: 0.99999964, y: 0.9999999, z: 1.0000005}
- name: Mano.R
parentName: Antebrazo.R
position: {x: 1.3737007e-10, y: 0.002219306, z: -7.380731e-10}
rotation: {x: -0.045642678, y: 0.71671987, z: 0.086150594, w: 0.6905125}
scale: {x: 0.99999994, y: 1.0000001, z: 0.9999997}
- name: "Me\xF1ique_01.R"
parentName: Mano.R
position: {x: 0.000053266995, y: 0.00050262344, z: 0.00027815788}
rotation: {x: 0.0017493317, y: 0.060282264, z: 0.09812605, w: 0.993345}
scale: {x: 0.9999998, y: 0.9999999, z: 1}
- name: "Me\xF1ique_02.R"
parentName: "Me\xF1ique_01.R"
position: {x: 4.842877e-10, y: 0.00051521056, z: 2.2351741e-10}
rotation: {x: 0.061546728, y: -0.03132671, z: 0.1248671, w: 0.9897671}
scale: {x: 0.99999976, y: 1, z: 1}
- name: Pulgar_01.R
parentName: Mano.R
position: {x: -0.0001465519, y: 0.00026031162, z: -0.00036921623}
rotation: {x: -0.30302474, y: 0.6826355, z: -0.11090527, w: 0.65565604}
scale: {x: 1, y: 1.0000001, z: 1.0000001}
- name: Pulgar_02.R
parentName: Pulgar_01.R
position: {x: 3.7252902e-11, y: 0.00036708676, z: 8.1956386e-10}
rotation: {x: 0.057180077, y: 0.02249719, z: 0.3347743, w: 0.9402928}
scale: {x: 0.9999999, y: 0.9999998, z: 1}
- name: Control_Mano.R
parentName: Control_Maestro
position: {x: 0.004923921, y: 0.0066548553, z: 0.0007486214}
rotation: {x: 0.86030596, y: 0.41214326, z: 0.17705418, w: 0.24220537}
scale: {x: 1.0000001, y: 1.0000001, z: 1.0000002}
parentName: Mano.R
position: {x: 0, y: 0, z: 0}
rotation: {x: 0.0000011958178, y: 0.0000010132787, z: -0.0000004582106, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: Anular_01.R
parentName: Control_Mano.R
position: {x: -0.000215, y: -0.004079, z: -0.002022}
rotation: {x: 0.03109854, y: -0.0028959957, z: -0.44522247, w: 0.89487505}
scale: {x: 1, y: 1.0000001, z: 1.0000002}
position: {x: 0.000007492518, y: 0.00055820105, z: -0.00010268781}
rotation: {x: 0.025707636, y: -0.017737787, z: 0.049409363, w: 0.9982902}
scale: {x: 1, y: 0.99999994, z: 1}
- name: Anular_02.R
parentName: Anular_01.R
position: {x: 5.3085386e-10, y: 0.00047456424, z: -2.7939677e-11}
rotation: {x: 0.048215397, y: -0.010430159, z: 0.1206865, w: 0.99146426}
scale: {x: 0.99999994, y: 1.0000004, z: 1.0000007}
rotation: {x: 0.048215386, y: -0.010430193, z: 0.120686606, w: 0.9914642}
scale: {x: 1, y: 1.0000001, z: 1}
- name: Muslo.L
parentName: Cadera
position: {x: -0.00013251555, y: -0.00007523841, z: -0.0004844876}
rotation: {x: -0.020672573, y: -0.03846385, z: 0.9975811, w: 0.054084077}
scale: {x: 1.0000054, y: 0.9999999, z: 1.0000026}
- name: Pierna.L
parentName: Muslo.L
position: {x: -8.8475643e-11, y: 0.0025338887, z: 1.3737007e-10}
rotation: {x: 0.028653594, y: -0.004788646, z: 0.14092997, w: 0.98959327}
scale: {x: 0.9999998, y: 1.0000005, z: 0.9999999}
- name: Bone.019.L
parentName: Pierna.L
position: {x: -2.3283064e-12, y: 0.0025667772, z: 8.731149e-12}
rotation: {x: 0.0035668407, y: -0.00000024339803, z: -0.6324116, w: 0.77462435}
scale: {x: 0.99999994, y: 0.9999998, z: 0.99999994}
- name: Bone.020.L
parentName: Bone.019.L
position: {x: -1.4988472e-11, y: 0.00066478376, z: -2.2409949e-11}
rotation: {x: -0.0016434314, y: 0.0000012258362, z: -0.16130723, w: 0.9869029}
scale: {x: 0.99999994, y: 0.99999994, z: 0.9999999}
- name: Muslo.R
parentName: Cadera
position: {x: -0.00013251524, y: -0.00007523837, z: 0.00048448765}
rotation: {x: 0.99758106, y: -0.05408531, z: -0.020673444, w: 0.038463533}
scale: {x: 1.0000073, y: 1.0000004, z: 1.0000037}
- name: Pierna.R
parentName: Muslo.R
position: {x: 3.259629e-11, y: 0.0025338891, z: 5.5879353e-11}
rotation: {x: 0.028653812, y: 0.004788579, z: -0.14093137, w: 0.989593}
scale: {x: 1.0000001, y: 0.99999964, z: 1}
- name: Bone.019.R
parentName: Pierna.R
position: {x: 2.561137e-11, y: 0.0025667765, z: -6.635673e-11}
rotation: {x: 0.0035666914, y: 0.00000081196356, z: 0.63241124, w: 0.77462465}
scale: {x: 1.0000001, y: 1.0000001, z: 1}
- name: Bone.020.R
parentName: Bone.019.R
position: {x: 4.10364e-11, y: 0.00066478347, z: 8.731149e-12}
rotation: {x: -0.0016435799, y: -0.0000012476767, z: 0.16130723, w: 0.9869029}
scale: {x: 1, y: 1, z: 0.9999998}
- name: SM_Alien_Flaco
parentName: SM_Alien_Flaco(Clone)
position: {x: 0.53928626, y: 0, z: 0}
@@ -537,7 +569,7 @@ ModelImporter:
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
rootMotionBoneName: Control_Maestro
hasTranslationDoF: 0
hasExtraRoot: 1
skeletonHasParents: 1

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: d941a2d26357b4d45a9b8caa347d5562
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,47 @@
/* Contenedor Principal responsivo */
.loading-container {
width: 100%;
height: 100%;
flex-grow: 1;
background-color: #000000;
align-items: flex-end;
justify-content: flex-end;
position: relative;
}
/* Texto de Carga */
.loading-text {
font-size: 50px;
color: #ffffff;
-unity-font-style: bold;
margin-right: 40px;
margin-bottom: 40px;
/* 1. Hacemos la caja más ancha para que quepa "CARGANDO..." con la fuente Komika */
width: 350px;
/* 2. Anclamos el texto a la izquierda de la caja */
-unity-text-align: middle-left;
/* 3. Evitamos estrictamente que el texto salte a la siguiente línea */
white-space: nowrap;
}
/* Contenedor de la Nave */
.spaceship-icon {
/* 1. Quitamos position: absolute para que respete el flujo y baje a la esquina */
position: relative;
/* 2. Tamaño ajustado */
width: 250px;
height: 250px;
/* 3. Márgenes para alinearla con el texto (mismo margin-left que el texto) */
margin-left: 40px;
/* 4. Un pequeño margen abajo para que no pegue con las letras */
margin-bottom: -20px;
/* Ajuste de imagen */
-unity-background-scale-mode: scale-to-fit;
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 2338a47a6d4bdf04fb16da5ab852dee3
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0}
disableValidation: 0
unsupportedSelectorAction: 0

View File

@@ -0,0 +1,7 @@
<ui:UXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="False">
<Style src="project://database/Assets/Game/Menus/LoadingScreen/LoadingScreen.uss?fileID=7433441132597879392&amp;guid=2338a47a6d4bdf04fb16da5ab852dee3&amp;type=3#LoadingScreen"/>
<ui:VisualElement name="Container" class="loading-container" style="aspect-ratio: 1.777778;">
<ui:VisualElement name="Spaceship" class="spaceship-icon"/>
<ui:Label text="Cargando" name="LoadingText" class="loading-text" style="-unity-font-definition: url(&quot;project://database/Assets/Game/Menus/Fonts/KOMIKAX_.ttf?fileID=12800000&amp;guid=afbd8b3e208400c4ebf47631612ef61f&amp;type=3#KOMIKAX_&quot;);"/>
</ui:VisualElement>
</ui:UXML>

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 574e334a49fbd6945b59354aed996919
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}

View File

@@ -0,0 +1,80 @@
using UnityEngine;
using UnityEngine.UIElements;
using UnityEngine.SceneManagement;
using System.Collections;
public class LoadingScreenController : MonoBehaviour
{
private UIDocument _doc;
private Label _loadingText;
private VisualElement _spaceship;
private int _dotCount = 0;
private float _time = 0f;
[Header("Configuración de Carga")]
public string sceneToLoad = "SampleScene";
private void Awake()
{
_doc = GetComponent<UIDocument>();
var root = _doc.rootVisualElement;
_loadingText = root.Q<Label>("LoadingText");
_spaceship = root.Q<VisualElement>("Spaceship");
// 1. Animación del texto: Se ejecuta cada 400 milisegundos
root.schedule.Execute(UpdateLoadingText).Every(400);
// 2. Animación loca de la nave: Se ejecuta cada 20 milisegundos para fluidez
root.schedule.Execute(AnimateSpaceship).Every(20);
// 3. Iniciar la carga de la escena en segundo plano
StartCoroutine(LoadSceneAsync());
}
private void UpdateLoadingText()
{
// Alterna entre 0 y 3 puntos
_dotCount = (_dotCount + 1) % 4;
_loadingText.text = "Cargando" + new string('.', _dotCount);
}
private void AnimateSpaceship()
{
if (_spaceship == null) return;
_time += 0.1f;
// Efecto "Rabbid": vibración y rotación errática usando Seno y Coseno
float offsetX = Mathf.Sin(_time * 12f) * 8f;
float offsetY = Mathf.Cos(_time * 15f) * 6f;
float rotation = Mathf.Sin(_time * 20f) * 3f;
_spaceship.style.translate = new Translate(offsetX, offsetY, 0);
_spaceship.style.rotate = new Rotate(new Angle(rotation, AngleUnit.Degree));
}
private IEnumerator LoadSceneAsync()
{
// Pequeña pausa opcional para que la pantalla no parpadee si la escena carga muy rápido
yield return new WaitForSeconds(0.5f);
AsyncOperation asyncLoad = SceneManager.LoadSceneAsync(sceneToLoad);
// La escena no cambia automáticamente hasta que nosotros lo indiquemos
asyncLoad.allowSceneActivation = false;
// Espera hasta que Unity haya cargado el 90% (el 10% restante es la activación)
while (asyncLoad.progress < 0.9f)
{
yield return null;
}
// Pequeña pausa para que la animación sea visible aunque la escena cargue muy rápido
yield return new WaitForSeconds(0.8f);
// Ahora sí, activa la escena
asyncLoad.allowSceneActivation = true;
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 62ff0d03d5ac484428d8223d73a8b8b2

View File

@@ -1 +1,2 @@
@import url("project://database/Assets/UI Toolkit/UnityThemes/UnityDefaultRuntimeTheme.tss");
@import url("MainMenu.uss");

View File

@@ -47,8 +47,8 @@ public class MainMenuController : MonoBehaviour
private void OnPlayClicked()
{
PlayClickSound();
Debug.Log("¡BWAAAH! Iniciando juego...");
// SceneManager.LoadScene("GameScene");
Debug.Log("Cargando SampleScene...");
SceneManager.LoadScene("Loading");
}
private void OnSettingsClicked()