Skip to content

Screen setup#5

Merged
henryouly merged 1 commit intomainfrom
henryouly-screen-setup
Dec 28, 2021
Merged

Screen setup#5
henryouly merged 1 commit intomainfrom
henryouly-screen-setup

Conversation

@henryouly
Copy link
Collaborator

@henryouly henryouly commented Dec 27, 2021

Changes the full-screen canvas into a 3D Quad with the rendering material of the video clip. The video clip is output to the RenderTexture (either from webcam or video source)

This should fit our demo better because the fullscreen video playback is too distracting if also placing the Unity-chan model in the scene. The new Quad can be resize and place further away like a Theater screen if needed.

As the result, we don't need to specify the _mainUI (a RawImage) in the InputController, as the texture will automatically applied to the material of the Quad, so removing for simplicity.

Additionally: minor changes to InputController.Start since it doesn't need to be the coroutine version.

@henryouly henryouly requested a review from wixette December 27, 2021 17:27
@henryouly henryouly self-assigned this Dec 27, 2021
@henryouly henryouly merged commit ebb75b3 into main Dec 28, 2021
@henryouly henryouly deleted the henryouly-screen-setup branch December 28, 2021 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants