-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to inject my own derived scene class? #316
Comments
You mean like you inherited your own class from babylon.js |
Thanks for answering so quickly 👍 |
Actually, looking at your code, it would be great if the createScene prop method was provided with the engine too |
hi @Chargeuk - Sorry for dropping this. Been quite hectic lately and I'm trying to cleanup the state of issues. Do you have time to do a PR? The babylon playground TS works similarly. It would be a new prop maybe like: createScene: (engine: Engine | WebGPUEngine, sceneOptions: SceneOptions) => Engine Then to call that instead of It's good to add more extension options like this - out of curiosity - why do you need to make your own derived Scene class? |
I merged in the |
Hi,
Can you tell me the way I can inject my own derived scene class?
Currently, I know that the TSX to create a scene is as follows:
is there a way I can push my own derived scene class or instance into the TSX?
Thanks
The text was updated successfully, but these errors were encountered: