Loading/Splash Screen #705
Unanswered
Dinorigami-SLHIDE
asked this question in
Q&A
Replies: 1 comment
-
Hey @Dinorigami-SLHIDE! 👋🏻 Ursina does have a built-in splash screen feature that you can customize or disable entirely. By default, when you launch a Ursina application, it shows a black window while the scene loads. However, you can replace this with your own custom loading screen. Disabling the Default Splash ScreenIf you want to remove Ursina’s default splash behavior, you can disable it like this: from ursina import *
app = Ursina(splash=False) # This prevents the default splash screen from showing
app.run() Creating a Custom Loading ScreenInstead of a black screen, you can show a custom loading screen using a from ursina import *
app = Ursina(splash=False) # Disable the default splash screen
# Create a loading screen
loading_text = Text("Loading...", scale=2, origin=(0,0), y=-0.3)
loading_icon = Entity(model="quad", texture="loading_texture.png", scale=(0.3, 0.3), y=0)
# Simulate loading process
def load_game():
import time
time.sleep(2) # Simulating load time
destroy(loading_text)
destroy(loading_icon)
print("Game Loaded!")
# Run load function after app starts
invoke(load_game, delay=0.1)
app.run() More Customization
Let me know if you need help implementing any of these! Hope this helps. 🚀 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello 👋🏻
Until the scene is fully loaded, a black window remains visible.
Is there any option to personalize this loading screen?
I've had a quick look at the Panda3D options (and I am a bit confused) so I was wondering if there is a feature in Ursina that could help.
Beta Was this translation helpful? Give feedback.
All reactions