You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I wrap the widget with a container or a sizedbox with a specific height and width, the 3d model is getting cropped instead of getting resized, as oppose to the android where it is getting resized properly.
To Reproduce
Steps to reproduce the behavior:
Exported the Unity web files using [fuw-2022.1.7f1.unitypackage]
2.Wrap the unitywidget in sizedbox of height and width 200.
3.run in debug mode in chrome
Expected behavior
I expected the model to get resized properly instead of getting cropped.
Unity (please complete the following information):
Platform: Web(Chrome)
Version: flutter_unity_widget 2022.2.0
Unity Editor: 2019.4.39f1
Mode : Debug
The text was updated successfully, but these errors were encountered:
Looks alright to me using Unity 2022, 2021 or 2020.
Both your issues seem related to Unity 2019. Like answered here, the export breaks for Unity 2019 as the unityLibrary/index.html is different than expected.
I assume you are missing the canvas width and height being set to 100% here.
Looks like unity sets this fixed, which causes your issue. <div id="unityContainer" style="width: 960px; height: 600px"></div>
I would suggest using a newer Unity version.
timbotimbo
changed the title
3d Model gets cropped out when resized in web
[Unity 2019] 3d Model gets cropped out when resized in web
Feb 2, 2023
Describe the bug
When I wrap the widget with a container or a sizedbox with a specific height and width, the 3d model is getting cropped instead of getting resized, as oppose to the android where it is getting resized properly.
To Reproduce
Steps to reproduce the behavior:
2.Wrap the unitywidget in sizedbox of height and width 200.
3.run in debug mode in chrome
Expected behavior
I expected the model to get resized properly instead of getting cropped.
Unity (please complete the following information):
Platform: Web(Chrome)
Version: flutter_unity_widget 2022.2.0
Unity Editor: 2019.4.39f1
Mode : Debug
The text was updated successfully, but these errors were encountered: