Skip to content
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

need on off camera using script #80

Open
ti-hardikshah opened this issue Dec 16, 2021 · 3 comments
Open

need on off camera using script #80

ti-hardikshah opened this issue Dec 16, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@ti-hardikshah
Copy link

Need way to start and stop camera using c# script.
and switch camera (Front and back).

@ti-hardikshah ti-hardikshah added the bug Something isn't working label Dec 16, 2021
@yasirkula
Copy link
Owner

This plugin only allows you to open the camera app. It isn't possible to close the camera app from C# side because Unity is paused while the camera is open. You'll need another plugin that renders the camera into a Texture in Unity.

@ti-hardikshah
Copy link
Author

Thanks for the quick replay.
I guess I need to render texture only.
is there any way to do it using a native plugin? Can we handle Camera open-close functionality using native code?

@yasirkula
Copy link
Owner

You can but not with NativeCamera and I don't know the details of how to accomplish this. But it has been done before so it's possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants