Hello developers. I have encountered a strange error where this Camera dissapears from a ViewportFrame upon launching the game, and i am wondering why this is occuring. Here are some images of the explorer layout (for clarification)
before launching:
after launching:
It would be appreciated if somebody could explain why this is happening or what i may be doing wrong. Thank you in advance.
The camera instance is deleted on play test and when studio is reopened. The Cameras data is stored in the viewport however so you don’t need to worry about it not being there. If you want to edit the Cameras CFrame during runtime you will need to create a camera instance within a local script and assign it to the viewport.
I could, but i was just wondering why exactly it had seemingly deleted the camera upon launch, as it was creating an error in the output saying that it didn’t exist, making me assume that it was entirely gone. But i’ll try that method instead. Thank you.
Do all the ViewportFrame’s children get hidden during runtime or just the camera?
I have coded it so the player’s character model gets parented to the ViewportFrame, but it is not showing up in the explorer.