Forum Archive

Scene game inside ui scrollView?

Drizzel

I am trying to have a scene animation inside a ui scrollview, but it doesn't work for some reason. I have a custom view (named sceneView) with the custom view class SceneView. This is in the sub view of a scrollview (named scrollView). I cannot set a scene animation to the sceneView, this is my code:

v = ui.load_view('ui.pyui')
v['sceneView'].scene= MyScene()
v.present('fullscreen', hide_title_bar=False)

Any idea why this isnt working?

JonB

If your scene is a subview to a scrolview, it won't be directly addressable from the root scene.

v['scrollview1']['sceneview1']

Should work, depending on what you named things..