how to write boot code? #2853
Answered
by
Doprez
Arc-huangjingtong
asked this question in
Q&A
-
|
if i want to run some logic when scene start,what is the best practice |
Beta Was this translation helpful? Give feedback.
Answered by
Doprez
Jul 30, 2025
Replies: 1 comment 1 reply
-
|
You can do one of the 2:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Arc-huangjingtong
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can do one of the 2:
StartupScriptand use theStartmethod.GameSystem, add it at the start of the application in a custom game class and run logic in theLoadContentmethod. Just make sure it is run after theSceneSystemis run for the Scene to be loaded.