Forum Archive

Start scenes within UI?

bennr01

Hello,
Does anyone know if there is a way to start scenes with the UI-modul? I tryed ui.in_background with the scene.run function, but the draw-method never get called(tried it with an print command). Seems to be corectly written, i also copy-and-pasted the demo for the console.alert in the documentation and edited it. Thanks for every help!

omz

The recommended way to run scenes within a ui is to use the scene.SceneView class, which is a subclass of ui.View.

There's a section about this in the documentation:

scene – Integration with the ui module

bennr01

Thanks! I havent read the documentation of the scene-modul since the new update came out, so i havent found the new section.