Skip to content

Set camera imported from glb file as view.camera #3713

Answered by prideout
TiduTidu asked this question in Q&A
Discussion options

You must be logged in to vote

Yes it's possible to do what you need. I think something like this would work:

view.camera = engine.getCameraComponent(asset.cameraEntities[0])

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@romainguy
Comment options

@bejado
Comment options

@TiduTidu
Comment options

@romainguy
Comment options

@TiduTidu
Comment options

Answer selected by TiduTidu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants