-
Updated
Nov 30, 2020 - Go
unity-engine
Here are 41 public repositories matching this topic...
-
Updated
Nov 21, 2020 - C#
-
Updated
Feb 18, 2020 - C#
-
Updated
Sep 4, 2015 - C#
-
Updated
Nov 30, 2020 - C#
-
Updated
Nov 26, 2020 - C#
-
Updated
Mar 25, 2018 - C#
-
Updated
Sep 22, 2020 - C++
-
Updated
Dec 17, 2017 - C#
-
Updated
Mar 11, 2020 - C#
-
Updated
Aug 7, 2020 - C#
-
Updated
May 30, 2017 - C#
-
Updated
Sep 29, 2020 - C#
-
Updated
Mar 30, 2016 - C#
-
Updated
Dec 17, 2017 - C#
-
Updated
Oct 31, 2018 - C#
-
Updated
Feb 29, 2020 - C#
-
Updated
Nov 27, 2020 - C#
-
Updated
Oct 5, 2019 - CSS
-
Updated
Nov 28, 2019 - C#
-
Updated
Nov 25, 2020 - ASP.NET
-
Updated
Jun 29, 2020 - C#
-
Updated
Nov 9, 2020 - ShaderLab
-
Updated
Apr 8, 2018
-
Updated
Aug 5, 2020 - Inno Setup
-
Updated
Oct 13, 2020 - C#
Improve this page
Add a description, image, and links to the unity-engine topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the unity-engine topic, visit your repo's landing page and select "manage topics."


個人測試中使用了兩個scene做場景的切換,scene1跟scene2,
scene1跟scene2各擺放一個按鈕做場景切換,
並在scene1最下方,另外擺放了uiwidgets的TextField widget做獲取虛擬鍵盤高度測試,
另外我想要在場景切換時TextField不被destroy,
所以使用了DontDestroyOnLoad讓TextField一直保持存在,
當我啟動程式時,預設為scene1,
這時點擊TextField時可獲取虛擬鍵盤高度,並把TextField往上推,
關閉虛擬鍵盤時,TextField會回到原位,
這時再點擊切換場景按鈕,切換到scene2,
此時點擊TextField並獲取虛擬鍵盤高度值為零(有印log),
我是使用MediaQuery.of(this.context).viewInsets.bottom來獲取虛擬鍵盤高度。