Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Hi! I keep working on the blaze sample. I was wondering which script should I modify to be able to change the size and the position of the webcam view, for example to project it half size in one side of the canvas and display something else like a background on the other. Thanks in advance.

You must be logged in to vote

Hi @ascoider

In the BlazePose example, the webcam texture is rendered in fullscreen by the CameraTextureBackground.cs attached to the main camera. And the WebCamInput sets the texture via the On Texture Updagte event.

You can replace it with another component, such as RawImage 👍

Replies: 2 comments

Comment options

Hi @ascoider

In the BlazePose example, the webcam texture is rendered in fullscreen by the CameraTextureBackground.cs attached to the main camera. And the WebCamInput sets the texture via the On Texture Updagte event.

Screenshot 2023-02-16 at 23 44 58

You can replace it with another component, such as RawImage 👍
Screenshot 2023-02-16 at 23 48 26

You must be logged in to vote
0 replies
Answer selected by ascoider
Comment options

Thanks! Your advice works perfect and I also discovered I can modify the output field in the camera for the same purpose.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.