Post by drelee on Jun 28, 2022 16:39:08 GMT
I have imported the mobile addon demo and the mobile controls in the demo scene do not work when i press them. I can only move using then keyboard. Console shows the following error each time I press one of the mobile buttons while in playmode:
Exception: This is not possible to be called for standalone input. Please check your platform and code where this is called
UnityStandardAssets.CrossPlatformInput.PlatformSpecific.StandaloneInput.SetButtonDown (System.String name) (at Assets/Standard Assets/CrossPlatformInput/Scripts/PlatformSpecific/StandaloneInput.cs:34)
UnityStandardAssets.CrossPlatformInput.CrossPlatformInputManager.SetButtonDown (System.String name) (at Assets/Standard Assets/CrossPlatformInput/Scripts/CrossPlatformInputManager.cs:133)
UnityStandardAssets.CrossPlatformInput.ButtonHandler.SetDownState () (at Assets/Standard Assets/CrossPlatformInput/Scripts/ButtonHandler.cs:18)
UnityEngine.Events.InvokableCall.Invoke () (at <1332c534a8a44623b2e5cc943a0b790e>:0)
UnityEngine.Events.UnityEvent`1[T0].Invoke (T0 arg0) (at <1332c534a8a44623b2e5cc943a0b790e>:0)
UnityEngine.EventSystems.EventTrigger.Execute (UnityEngine.EventSystems.EventTriggerType id, UnityEngine.EventSystems.BaseEventData eventData) (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/EventTrigger.cs:220)
UnityEngine.EventSystems.EventTrigger.OnPointerDown (UnityEngine.EventSystems.PointerEventData eventData) (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/EventTrigger.cs:261)
UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerDownHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/ExecuteEvents.cs:43)
UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/ExecuteEvents.cs:272)
UnityEngine.EventSystems.EventSystem:Update() (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/EventSystem.cs:501)
Exception: This is not possible to be called for standalone input. Please check your platform and code where this is called
UnityStandardAssets.CrossPlatformInput.PlatformSpecific.StandaloneInput.SetButtonDown (System.String name) (at Assets/Standard Assets/CrossPlatformInput/Scripts/PlatformSpecific/StandaloneInput.cs:34)
UnityStandardAssets.CrossPlatformInput.CrossPlatformInputManager.SetButtonDown (System.String name) (at Assets/Standard Assets/CrossPlatformInput/Scripts/CrossPlatformInputManager.cs:133)
UnityStandardAssets.CrossPlatformInput.ButtonHandler.SetDownState () (at Assets/Standard Assets/CrossPlatformInput/Scripts/ButtonHandler.cs:18)
UnityEngine.Events.InvokableCall.Invoke () (at <1332c534a8a44623b2e5cc943a0b790e>:0)
UnityEngine.Events.UnityEvent`1[T0].Invoke (T0 arg0) (at <1332c534a8a44623b2e5cc943a0b790e>:0)
UnityEngine.EventSystems.EventTrigger.Execute (UnityEngine.EventSystems.EventTriggerType id, UnityEngine.EventSystems.BaseEventData eventData) (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/EventTrigger.cs:220)
UnityEngine.EventSystems.EventTrigger.OnPointerDown (UnityEngine.EventSystems.PointerEventData eventData) (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/EventTrigger.cs:261)
UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerDownHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/ExecuteEvents.cs:43)
UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/ExecuteEvents.cs:272)
UnityEngine.EventSystems.EventSystem:Update() (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/EventSystem.cs:501)