Mobile support Selector

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
ssshammi
Posts: 6
Joined: Wed Feb 28, 2024 9:20 am

Mobile support Selector

Post by ssshammi »

Hi i am using UCC and dialogue manager, and it seems that there is an issue when i use Selector, on mobile i want the user to touch to talk, i don't know if this issue is only in the simulator or everywhere. I think this has got to do with InputDeviceManager.GetMousePosition();
Screenshot 2024-10-15 195342.jpg
Screenshot 2024-10-15 195342.jpg (147.8 KiB) Viewed 71 times
Screen position out of view frustum (screen pos inf, -inf) (Camera rect 0 0 3088 1440)
UnityEngine.Camera:ScreenPointToRay (UnityEngine.Vector3)
PixelCrushers.DialogueSystem.Selector:Run3DRaycast () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Triggers/Interaction/Selector.cs:467)
PixelCrushers.DialogueSystem.Selector:Update () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Triggers/Interaction/Selector.cs:335)
User avatar
Tony Li
Posts: 22091
Joined: Thu Jul 18, 2013 1:27 pm

Re: Mobile support Selector

Post by Tony Li »

Hi,

On mobile, I recommend using a Proximity Selector or your own interaction system.

If you use your own interaction system, configure it to call Usables' DialogueSystemTrigger.OnUse() methods.

If you use a Proximity Selector, you can set its Touch Area, which is an area on the screen that the player can tap to interact with the targeted Usable.

Alternatively, you can add UI buttons (even invisible UI buttons) to NPCs so the player can tap the UI button to interact with the NPC.
ssshammi
Posts: 6
Joined: Wed Feb 28, 2024 9:20 am

Re: Mobile support Selector

Post by ssshammi »

Hi i get this issue for some reason it is not related to a previous issue i think.

Screen position out of view frustum,
Screen position out of view frustum (screen pos inf, -inf) (Camera rect 0 0 3088 1440)
UnityEngine.Camera:ScreenPointToRay (UnityEngine.Vector3)
PixelCrushers.DialogueSystem.Selector:Run3DRaycast () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Triggers/Interaction/Selector.cs:467)
PixelCrushers.DialogueSystem.Selector:Update () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Triggers/Interaction/Selector.cs:335)
User avatar
Tony Li
Posts: 22091
Joined: Thu Jul 18, 2013 1:27 pm

Re: Mobile support Selector

Post by Tony Li »

Hi,

This is usually a Unity editor bug. Try closing your Scene view and opening a new one.

If that doesn't work, remove the camera from your scene and create it again. There may be a problem on your camera.
Post Reply