Warning與error直撲而來XDD
蠻頭痛的,我目前遇到的有兩個問題被回報為Bug。
簡單來說,我現在的目標是讓HMD Mock可以順利地在沒有頭盔的情況下,模擬VR的操作輸入。
Mac 10.15.5
Unity 2020.3.14f1
Mock HMD Loader
*1
Preset Manager: Preset XRI Default Left/Right Controller
,並分別加入Left/Right
FilterOther Settings > Configuration > Active Input Handling = Both
Enable Preview Packages
Default Input Actions
和 XR Device Simulator
Assets/Samples/XR Interaction Toolkit/1.0.0-pre.6/Default Input Action
,將XRI Default Left/Right Controller Add to ActionBasedController default
-> *1去設定Preset Manager
Add Component: Input Action Manager
,並把XRI Default Input Actions
加入至Input Aciton Manager
的Action Assests List
裡
Invalid AssetDatabase path: /Assets/Samples/XR Interaction Toolkit/1.0.0-pre.6/Default Input Actions. Use path relative to the project folder.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
import Default Input Actions 和 XR Device Simulator遇到的錯誤。
已知Unity Community有此討論:
[Bug] Flickering shadow issue
Console沒有任何訊息
'Enable Input Tracking' is enabled
, but Position and/or Rotation Action is disabled
. The pose of the controller will not be updated correctly until the Input Actions are enabled
. Input Actions in an Input Action Asset must be explicitly enabled to read the current value of the action. The Input Action Manager behavior can be added to a GameObject in a Scene
and used to enable all Input Actions in a referenced Input Action Asset.
UnityEngine.XR.Interaction.Toolkit.XRBaseController:Update () (at Library/PackageCache/com.unity.xr.interaction.toolkit@1.0.0-pre.6/Runtime/Interaction/Controllers/XRBaseController.cs:300)
'Enable Input Actions' is enabled
, but Select, Activate, and/or UI Press Action is disabled
. The controller input will not be handled correctly until the Input Actions are enabled
. Input Actions in an Input Action Asset must be explicitly enabled to read the current value of the action. The Input Action Manager behavior can be added to a GameObject in a Scene
and used to enable all Input Actions in a referenced Input Action Asset.
UnityEngine.XR.Interaction.Toolkit.XRBaseController:Update () (at Library/PackageCache/com.unity.xr.interaction.toolkit@1.0.0-pre.6/Runtime/Interaction/Controllers/XRBaseController.cs:300)
'Enable Input Tracking
' is enabled, but Position and/or Rotation Action is disabled. The pose of the controller will not be updated correctly until the Input Actions are enabled
. Input Actions in an Input Action Asset must be explicitly enabled to read the current value of the action. The Input Action Manager behavior can be added to a GameObject in a Scene and used to enable all Input Actions in a referenced Input Action Asset.
UnityEngine.XR.Interaction.Toolkit.XRBaseController:Update () (at Library/PackageCache/com.unity.xr.interaction.toolkit@1.0.0-pre.6/Runtime/Interaction/Controllers/XRBaseController.cs:300)
'Enable Input Actions
' is enabled, but Select, Activate, and/or UI Press Action is disabled. The controller input will not be handled correctly until the Input Actions are enabled
. Input Actions in an Input Action Asset must be explicitly enabled to read the current value of the action. The Input Action Manager behavior can be added to a GameObject in a Scene and used to enable all Input Actions in a referenced Input Action Asset.
UnityEngine.XR.Interaction.Toolkit.XRBaseController:Update () (at Library/PackageCache/com.unity.xr.interaction.toolkit@1.0.0-pre.6/Runtime/Interaction/Controllers/XRBaseController.cs:300)
明天搞點輕鬆的,來去逛頭盔 (・∀・)
參考:
https://www.youtube.com/watch?v=UlqdHrfXppo&ab_channel=Valem
https://docs.unity3d.com/Manual/com.unity.xr.mock-hmd.html
https://forum.unity.com/threads/attempting-to-determine-the-size-of-an-unknown-feature-type-id-1-while-using-mockhmd.1021825/
https://forum.unity.com/threads/flickering-shadow-issue.954705/