Added transition

This commit is contained in:
Jeremy Smitherman 2026-04-25 16:49:07 -05:00
parent 3a42921ad3
commit f45007b9f9
11 changed files with 138 additions and 39 deletions

View File

@ -5,7 +5,15 @@
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="60468364-7d9c-427f-83f9-f6cd83ef8783" name="Changes" comment=""> <list default="true" id="60468364-7d9c-427f-83f9-f6cd83ef8783" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/Assets/Scripts/Player/Movement.cs" beforeDir="false" afterPath="$PROJECT_DIR$/Assets/Scripts/Player/Movement.cs" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/.idea.SpringJam2026/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.idea.SpringJam2026/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Assets/Prefabs/UI/MainMenu.prefab" beforeDir="false" afterPath="$PROJECT_DIR$/Assets/Prefabs/UI/MainMenu.prefab" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Assets/Scenes/Bootstrap.unity" beforeDir="false" afterPath="$PROJECT_DIR$/Assets/Scenes/Bootstrap.unity" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Assets/Scenes/Game.unity" beforeDir="false" afterPath="$PROJECT_DIR$/Assets/Scenes/Game.unity" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Assets/Scripts/Management/Services.cs" beforeDir="false" afterPath="$PROJECT_DIR$/Assets/Scripts/Management/Services.cs" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Assets/Scripts/State/Game/GameRunningState.cs" beforeDir="false" afterPath="$PROJECT_DIR$/Assets/Scripts/State/Game/GameRunningState.cs" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Assets/Scripts/State/Game/MainMenuState.cs" beforeDir="false" afterPath="$PROJECT_DIR$/Assets/Scripts/State/Game/MainMenuState.cs" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Assets/UI/DeathScreen.uxml" beforeDir="false" afterPath="$PROJECT_DIR$/Assets/UI/DeathScreen.uxml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Assets/UI/Tutorial.uxml" beforeDir="false" afterPath="$PROJECT_DIR$/Assets/UI/Tutorial.uxml" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -107,10 +115,10 @@
<option name="useMixedMode" value="false" /> <option name="useMixedMode" value="false" />
<method v="2" /> <method v="2" />
</configuration> </configuration>
<configuration name="Attach to Unity Editor" type="UNITY_DEBUG_RUN_CONFIGURATION" factoryName="Unity Debug" show_console_on_std_err="false" show_console_on_std_out="false" port="50000" address="localhost" ignored-value-for-modified-check="219780"> <configuration name="Attach to Unity Editor" type="UNITY_DEBUG_RUN_CONFIGURATION" factoryName="Unity Debug" show_console_on_std_err="false" show_console_on_std_out="false" port="50000" address="localhost" ignored-value-for-modified-check="186296">
<option name="allowRunningInParallel" value="false" /> <option name="allowRunningInParallel" value="false" />
<option name="listenPortForConnections" value="false" /> <option name="listenPortForConnections" value="false" />
<option name="pid" value="219780" /> <option name="pid" value="186296" />
<option name="projectPathOnTarget" /> <option name="projectPathOnTarget" />
<option name="runtimes"> <option name="runtimes">
<list> <list>
@ -136,7 +144,7 @@
<updated>1777050991106</updated> <updated>1777050991106</updated>
<workItem from="1777050993247" duration="19210000" /> <workItem from="1777050993247" duration="19210000" />
<workItem from="1777098508515" duration="3575000" /> <workItem from="1777098508515" duration="3575000" />
<workItem from="1777126978640" duration="18671000" /> <workItem from="1777126978640" duration="21182000" />
</task> </task>
<servers /> <servers />
</component> </component>

View File

@ -48,7 +48,7 @@ MonoBehaviour:
m_PanelSettings: {fileID: 11400000, guid: 4f01bbaf43abd294b9e7341d0530a9aa, type: 2} m_PanelSettings: {fileID: 11400000, guid: 4f01bbaf43abd294b9e7341d0530a9aa, type: 2}
m_ParentUI: {fileID: 0} m_ParentUI: {fileID: 0}
sourceAsset: {fileID: 9197481963319205126, guid: d29bfcc0217a10b488edd76a7ae59cf2, type: 3} sourceAsset: {fileID: 9197481963319205126, guid: d29bfcc0217a10b488edd76a7ae59cf2, type: 3}
m_SortingOrder: 0 m_SortingOrder: 98
m_Position: 0 m_Position: 0
m_WorldSpaceSizeMode: 1 m_WorldSpaceSizeMode: 1
m_WorldSpaceWidth: 1920 m_WorldSpaceWidth: 1920

View File

@ -557,6 +557,8 @@ MonoBehaviour:
bgm: {fileID: 1755353617} bgm: {fileID: 1755353617}
sfx: {fileID: 1327356649} sfx: {fileID: 1327356649}
inputRouter: {fileID: 1131356127} inputRouter: {fileID: 1131356127}
transition: {fileID: 1947609808}
transitionTime: 0.5
--- !u!4 &1671688485 --- !u!4 &1671688485
Transform: Transform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -584,7 +586,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 4b256c4001284134990a2af43c375455, type: 3} m_Script: {fileID: 11500000, guid: 4b256c4001284134990a2af43c375455, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Bootstrap m_EditorClassIdentifier: Assembly-CSharp::Bootstrap
startType: 3 startType: 1
gameStateMachine: {fileID: 1469922750} gameStateMachine: {fileID: 1469922750}
--- !u!1 &1755353616 --- !u!1 &1755353616
GameObject: GameObject:
@ -894,6 +896,61 @@ AudioSource:
m_PreInfinity: 2 m_PreInfinity: 2
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 4 m_RotationOrder: 4
--- !u!1 &1947609808
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1947609810}
- component: {fileID: 1947609809}
m_Layer: 0
m_Name: Transition
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1947609809
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1947609808}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 19102, guid: 0000000000000000e000000000000000, type: 0}
m_Name:
m_EditorClassIdentifier: UnityEngine.dll::UnityEngine.UIElements.UIDocument
m_PanelSettings: {fileID: 11400000, guid: 4f01bbaf43abd294b9e7341d0530a9aa, type: 2}
m_ParentUI: {fileID: 0}
sourceAsset: {fileID: 9197481963319205126, guid: e0e8530a45831f04ea7c4fb8ac4ef3fd, type: 3}
m_SortingOrder: 99
m_Position: 0
m_WorldSpaceSizeMode: 1
m_WorldSpaceWidth: 1920
m_WorldSpaceHeight: 1080
m_PivotReferenceSize: 0
m_Pivot: 0
m_WorldSpaceCollider: {fileID: 0}
--- !u!4 &1947609810
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1947609808}
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 &2045788189 --- !u!1 &2045788189
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -935,3 +992,4 @@ SceneRoots:
- {fileID: 1469922751} - {fileID: 1469922751}
- {fileID: 1131356126} - {fileID: 1131356126}
- {fileID: 564331331} - {fileID: 564331331}
- {fileID: 1947609810}

View File

@ -5573,16 +5573,6 @@ Tilemap:
m_TileObjectToInstantiateIndex: 65535 m_TileObjectToInstantiateIndex: 65535
dummyAlignment: 0 dummyAlignment: 0
m_AllTileFlags: 2147483649 m_AllTileFlags: 2147483649
- first: {x: 10, y: 73, z: 0}
second:
serializedVersion: 2
m_TileIndex: 17
m_TileSpriteIndex: 17
m_TileMatrixIndex: 0
m_TileColorIndex: 0
m_TileObjectToInstantiateIndex: 65535
dummyAlignment: 0
m_AllTileFlags: 2147483649
- first: {x: 16, y: 73, z: 0} - first: {x: 16, y: 73, z: 0}
second: second:
serializedVersion: 2 serializedVersion: 2
@ -5699,7 +5689,7 @@ Tilemap:
m_Data: {fileID: 11400000, guid: bd577f0b0ff284445b29aecf84626b4b, type: 2} m_Data: {fileID: 11400000, guid: bd577f0b0ff284445b29aecf84626b4b, type: 2}
- m_RefCount: 1 - m_RefCount: 1
m_Data: {fileID: 11400000, guid: 1d5b15715d21a964cada298dc7fefb17, type: 2} m_Data: {fileID: 11400000, guid: 1d5b15715d21a964cada298dc7fefb17, type: 2}
- m_RefCount: 10 - m_RefCount: 9
m_Data: {fileID: 11400000, guid: 79658d08f0cc20242980b0ed645de8b5, type: 2} m_Data: {fileID: 11400000, guid: 79658d08f0cc20242980b0ed645de8b5, type: 2}
- m_RefCount: 1 - m_RefCount: 1
m_Data: {fileID: 11400000, guid: bdd97f5a2dcbb4e47a0084db2d949bbf, type: 2} m_Data: {fileID: 11400000, guid: bdd97f5a2dcbb4e47a0084db2d949bbf, type: 2}
@ -5742,7 +5732,7 @@ Tilemap:
m_Data: {fileID: -1245410657, guid: 4efdfdbf2085f1c4aade8e3d44b1ea43, type: 3} m_Data: {fileID: -1245410657, guid: 4efdfdbf2085f1c4aade8e3d44b1ea43, type: 3}
- m_RefCount: 1 - m_RefCount: 1
m_Data: {fileID: -779581496, guid: 4efdfdbf2085f1c4aade8e3d44b1ea43, type: 3} m_Data: {fileID: -779581496, guid: 4efdfdbf2085f1c4aade8e3d44b1ea43, type: 3}
- m_RefCount: 10 - m_RefCount: 9
m_Data: {fileID: -3755448495774436313, guid: 4efdfdbf2085f1c4aade8e3d44b1ea43, type: 3} m_Data: {fileID: -3755448495774436313, guid: 4efdfdbf2085f1c4aade8e3d44b1ea43, type: 3}
- m_RefCount: 1 - m_RefCount: 1
m_Data: {fileID: -5622494010663576134, guid: 4efdfdbf2085f1c4aade8e3d44b1ea43, type: 3} m_Data: {fileID: -5622494010663576134, guid: 4efdfdbf2085f1c4aade8e3d44b1ea43, type: 3}
@ -5751,7 +5741,7 @@ Tilemap:
- m_RefCount: 2 - m_RefCount: 2
m_Data: {fileID: 1101770504183819589, guid: 4efdfdbf2085f1c4aade8e3d44b1ea43, type: 3} m_Data: {fileID: 1101770504183819589, guid: 4efdfdbf2085f1c4aade8e3d44b1ea43, type: 3}
m_TileMatrixArray: m_TileMatrixArray:
- m_RefCount: 466 - m_RefCount: 465
m_Data: m_Data:
e00: 1 e00: 1
e01: 0 e01: 0
@ -5770,7 +5760,7 @@ Tilemap:
e32: 0 e32: 0
e33: 1 e33: 1
m_TileColorArray: m_TileColorArray:
- m_RefCount: 466 - m_RefCount: 465
m_Data: {r: 1, g: 1, b: 1, a: 1} m_Data: {r: 1, g: 1, b: 1, a: 1}
m_TileObjectToInstantiateArray: [] m_TileObjectToInstantiateArray: []
m_AnimationFrameRate: 1 m_AnimationFrameRate: 1
@ -5851,14 +5841,6 @@ CompositeCollider2D:
Y: 405000000 Y: 405000000
- X: 80000000 - X: 80000000
Y: 365000000 Y: 365000000
- X: 55000000
Y: 365000000
- X: 55000000
Y: 370000000
- X: 50000000
Y: 370000000
- X: 50000000
Y: 365000000
- X: 45000000 - X: 45000000
Y: 365000000 Y: 365000000
- X: 45000000 - X: 45000000
@ -6099,10 +6081,6 @@ CompositeCollider2D:
- {x: 8.49997, y: 40.5} - {x: 8.49997, y: 40.5}
- {x: 8, y: 40.499973} - {x: 8, y: 40.499973}
- {x: 7.9999704, y: 36.5} - {x: 7.9999704, y: 36.5}
- {x: 5.5, y: 36.50003}
- {x: 5.499971, y: 37}
- {x: 5, y: 36.999973}
- {x: 4.9999704, y: 36.5}
- {x: 4.5, y: 36.499973} - {x: 4.5, y: 36.499973}
- {x: 4.500029, y: 35.5} - {x: 4.500029, y: 35.5}
- {x: 5, y: 35.50003} - {x: 5, y: 35.50003}

View File

@ -1,4 +1,7 @@
using System.Collections;
using Unity.VisualScripting;
using UnityEngine; using UnityEngine;
using UnityEngine.UIElements;
namespace Management namespace Management
{ {
@ -21,6 +24,32 @@ namespace Management
[SerializeField] private BGM bgm; [SerializeField] private BGM bgm;
[SerializeField] private SFX sfx; [SerializeField] private SFX sfx;
[SerializeField] private InputRouter inputRouter; [SerializeField] private InputRouter inputRouter;
[SerializeField] private GameObject transition;
[SerializeField] private float transitionTime;
private Coroutine _transitionRoutine;
private VisualElement _loadingScreen;
public void ShowTransition(bool show)
{
if (_transitionRoutine != null)
StopCoroutine(_transitionRoutine);
_transitionRoutine = StartCoroutine(TransitionRoutine(!show));
}
private IEnumerator TransitionRoutine(bool reverse)
{
var timer = 0f;
while (timer < transitionTime)
{
timer += Time.deltaTime;
_loadingScreen.style.opacity = Mathf.Lerp(
reverse ? 1 : 0,
reverse ? 0: 1, timer / transitionTime);
yield return null;
}
_transitionRoutine = null;
}
private void Awake() private void Awake()
{ {
@ -35,6 +64,8 @@ namespace Management
// survive scene reloads // survive scene reloads
DontDestroyOnLoad(gameObject); DontDestroyOnLoad(gameObject);
_loadingScreen = transition.GetComponent<UIDocument>().rootVisualElement.Q<VisualElement>("transitionContainer");
} }
} }
} }

View File

@ -13,6 +13,7 @@ namespace State.Game
MainStateMachine.PlayerMovement.OnDeath += HandleDeath; MainStateMachine.PlayerMovement.OnDeath += HandleDeath;
MainStateMachine.PlayerMovement.GetPickup += HandleTutorial; MainStateMachine.PlayerMovement.GetPickup += HandleTutorial;
MainStateMachine.PlayerMovement.EnterSpring += HandleTutorial; MainStateMachine.PlayerMovement.EnterSpring += HandleTutorial;
Services.Instance.ShowTransition(false);
} }
private void HandleTutorial() private void HandleTutorial()

View File

@ -1,4 +1,5 @@
using System.Collections; using System.Collections;
using Management;
using UI; using UI;
using UnityEngine; using UnityEngine;
using UnityEngine.SceneManagement; using UnityEngine.SceneManagement;
@ -47,10 +48,16 @@ namespace State.Game
} }
private void HandleStartGame() private void HandleStartGame()
{
StateMachine.StartCoroutine(ExecuteStartGame());
}
private IEnumerator ExecuteStartGame()
{ {
_mainMenuInstance.OnStartGame -= HandleStartGame; _mainMenuInstance.OnStartGame -= HandleStartGame;
Services.Instance.ShowTransition(true);
yield return new WaitForSeconds(2f);
StateMachine.ChangeState(new StartGameState()); StateMachine.ChangeState(new StartGameState());
} }
} }
} }

View File

@ -1,5 +1,5 @@
<ui:UXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" noNamespaceSchemaLocation="../../UIElementsSchema/UIElements.xsd" editor-extension-mode="False"> <ui:UXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" noNamespaceSchemaLocation="../../UIElementsSchema/UIElements.xsd" editor-extension-mode="False">
<ui:VisualElement style="flex-grow: 1; background-color: rgb(0, 0, 0); align-items: center; align-content: auto; justify-content: center;"> <ui:VisualElement picking-mode="Ignore" style="flex-grow: 1; background-color: rgb(0, 0, 0); align-items: center; align-content: auto; justify-content: center;">
<ui:Label text="[ CENSORED ]" style="background-color: rgb(255, 250, 250); font-size: 104px; rotate: -31deg;"/> <ui:Label text="[ CENSORED ]" style="background-color: rgb(255, 250, 250); font-size: 104px; rotate: -31deg;"/>
</ui:VisualElement> </ui:VisualElement>
</ui:UXML> </ui:UXML>

View File

@ -0,0 +1,6 @@
<ui:UXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" noNamespaceSchemaLocation="../../UIElementsSchema/UIElements.xsd" editor-extension-mode="False">
<ui:VisualElement picking-mode="Ignore" name="transitionContainer" style="flex-grow: 1; background-color: rgb(0, 0, 0); align-items: center; justify-content: center; opacity: 0;">
<ui:VisualElement picking-mode="Ignore" style="flex-grow: 0; background-image: url(&quot;project://database/Assets/Prefabs/Catepillar/catepillar.png?fileID=5487822846996609747&amp;guid=b960c99507aa1a84a8f28bdcbcc81c19&amp;type=3#catepillar_0&quot;); width: 138px; height: 104px;"/>
<ui:Label text="NOW LOADING..." picking-mode="Ignore" style="-unity-text-align: upper-center; color: rgb(255, 0, 183); -unity-font-definition: url(&quot;project://database/Assets/UI/PrStart.ttf?fileID=12800000&amp;guid=d50f742a17909804e9834b7d2ff9a2d8&amp;type=3#PrStart&quot;); font-size: 18px;"/>
</ui:VisualElement>
</ui:UXML>

View File

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

View File

@ -1,10 +1,10 @@
<ui:UXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" noNamespaceSchemaLocation="../../UIElementsSchema/UIElements.xsd" editor-extension-mode="False"> <ui:UXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" noNamespaceSchemaLocation="../../UIElementsSchema/UIElements.xsd" editor-extension-mode="False">
<ui:VisualElement style="flex-grow: 1; align-items: center; justify-content: flex-start; margin-top: 200px;"> <ui:VisualElement picking-mode="Ignore" style="flex-grow: 1; align-items: center; justify-content: flex-start; margin-top: 200px;">
<ui:VisualElement name="Tutorial1" style="flex-grow: 0; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; background-color: rgb(0, 0, 0); display: none;"> <ui:VisualElement name="Tutorial1" picking-mode="Ignore" style="flex-grow: 0; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; background-color: rgb(0, 0, 0); display: none;">
<ui:Label text="CLICK THE LEFT MOUSE &#10;BUTTON TO LAUNCH &#10;WHEN YOU ARE OVER A SPRING" name="TutorialText1" enabled="true" style="-unity-text-align: upper-center; font-size: 20px; -unity-font-definition: url(&quot;project://database/Assets/UI/PrStart.ttf?fileID=12800000&amp;guid=d50f742a17909804e9834b7d2ff9a2d8&amp;type=3#PrStart&quot;); color: rgb(255, 107, 196); display: flex;"/> <ui:Label text="CLICK THE LEFT MOUSE &#10;BUTTON TO LAUNCH &#10;WHEN YOU ARE OVER A SPRING" name="TutorialText1" enabled="true" picking-mode="Ignore" style="-unity-text-align: upper-center; font-size: 20px; -unity-font-definition: url(&quot;project://database/Assets/UI/PrStart.ttf?fileID=12800000&amp;guid=d50f742a17909804e9834b7d2ff9a2d8&amp;type=3#PrStart&quot;); color: rgb(255, 107, 196); display: flex;"/>
</ui:VisualElement> </ui:VisualElement>
<ui:VisualElement name="Tutorial2" style="flex-grow: 0; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; background-color: rgb(0, 0, 0); display: none;"> <ui:VisualElement name="Tutorial2" picking-mode="Ignore" style="flex-grow: 0; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; background-color: rgb(0, 0, 0); display: none;">
<ui:Label text="FRUIT LETS YOU LEFT &#10;CLICK TO &#10;AIR JUMP TOWARDS &#10;YOUR MOUSE" name="TutorialText2" enabled="true" style="-unity-text-align: upper-center; font-size: 20px; -unity-font-definition: url(&quot;project://database/Assets/UI/PrStart.ttf?fileID=12800000&amp;guid=d50f742a17909804e9834b7d2ff9a2d8&amp;type=3#PrStart&quot;); color: rgb(255, 107, 196); display: flex;"/> <ui:Label text="FRUIT LETS YOU LEFT &#10;CLICK TO &#10;AIR JUMP TOWARDS &#10;YOUR MOUSE" name="TutorialText2" enabled="true" picking-mode="Ignore" style="-unity-text-align: upper-center; font-size: 20px; -unity-font-definition: url(&quot;project://database/Assets/UI/PrStart.ttf?fileID=12800000&amp;guid=d50f742a17909804e9834b7d2ff9a2d8&amp;type=3#PrStart&quot;); color: rgb(255, 107, 196); display: flex;"/>
</ui:VisualElement> </ui:VisualElement>
</ui:VisualElement> </ui:VisualElement>
</ui:UXML> </ui:UXML>