Forum Archive

How to exit a scene?

ellie_ff1493

I have a scene and I want to add a custom “x” and I want to stop my scrip but sys.exit doesn’t work and I don’t know how I’d do it without that

omz

self.view.close() should work (assuming self is your scene object).

ellie_ff1493

Works great, thanks