英文:
Content scales outside scrollview port in Unity's UI, but only on Android
问题
我的ScrollView的内容突然开始缩放到超出视口,这让我感到疑惑,因为它之前一直正常工作。
在Windows上仍然正常工作,并且我没有更改任何可能导致这种效果的脚本。
我发现了答案,将在下面分享。
英文:
I was wondering why the content of my scrollview suddenly began scaling to be outside the viewport of my ScrollView, which had worked fine up until then.
It still worked fine on Windows and I hadn't changed anything in scripts that should cause such an effect.
I discovered the answer which I will share below.
答案1
得分: 0
在Android上,事实证明滚动视图视口没有按预期工作,因为我在Android播放器设置中勾选了布尔值“禁用深度和模板”。取消勾选该布尔值并保存项目设置后,滚动视图视口再次按预期工作。
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论