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

fitMode doesn't work on video textures #4571

Closed
marcusx2 opened this issue Aug 20, 2022 · 1 comment · Fixed by #7200
Closed

fitMode doesn't work on video textures #4571

marcusx2 opened this issue Aug 20, 2022 · 1 comment · Fixed by #7200
Labels
area: ui UI related issue bug

Comments

@marcusx2
Copy link

marcusx2 commented Aug 20, 2022

If you fork this project and attempt to set the fit mode to cover for example, it won't work. The video will not play on the UI according to the fit mode you chose. It works with static images just fine, but it seems that on textures that are updated at runtime, it fails.

@marcusx2 marcusx2 changed the title fit mode doesn't work on image element if texture is updated at runtime [bug report] fit mode doesn't work on image element if texture is updated at runtime Aug 21, 2022
@yaustar
Copy link
Collaborator

yaustar commented Aug 22, 2022

Expected:
image

Result:
image

Project repro: https://playcanvas.com/project/972307/overview/video-fitmode

@yaustar yaustar added bug area: ui UI related issue labels Aug 22, 2022
@yaustar yaustar changed the title [bug report] fit mode doesn't work on image element if texture is updated at runtime fitMode doesn't work on video textures Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ui UI related issue bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants