Issues in AR from Unity. Button, grab and font

Hello! I am newbie in Needle and started to make a project in unity for AR . The grab script system looks like not working if I have 2 separated objects inside AR , but on browser seems OK. Also I create a UI button (old system without tmp) and the same in browser looks ok when click but in AR does not work and the font sometimes disappears. So I have 3 issues in AR.
-grab system not working for separate meshes
-button is not working in AR
-Font not appears properly.

Thanks if someone could help to or guide me to solve those issues.

Hello polycube! Let’s help you with the issues in your Unity AR project using Needle.

1. Grab System Not Working for Separate Meshes

  • Colliders: Ensure that each mesh you want to grab has a collider component attached (e.g., BoxCollider or MeshCollider). This is essential for detecting interactions.
  • Script Logic: Check your grab script to ensure it can handle multiple objects. It might need a way to differentiate between them or recognize the specific mesh being interacted with. Look for event listeners in your script and confirm they’re correctly set up for multiple meshes.
  • Debugging: Use debug logs within your grab script to confirm if interactions on separate meshes are being recognized.

2. Button Not Working in AR

  • Event System: Make sure you have a Unity Event System in your scene. This is required for UI interactions.
  • Canvas Setup: UI in AR should be in a 3D space (use a World Space Canvas). Make sure your button’s RectTransform is correctly positioned in the scene and within the camera’s view.
  • Click Interactions: Review your button’s event listeners. Ensure they are being triggered correctly when clicked, especially in AR where interactions may differ from a desktop environment.

3. Font Not Appearing Properly

  • Font Setup: Confirm your traditional UI font is correctly imported and applied. Sometimes, fonts may have issues rendering in certain contexts. If you are using a custom font, check that it is supported by Unity.
  • Text Visibility: Ensure that the text object is positioned correctly in the scene and not occluded by other objects. Check its scaling as well—if it’s too small, it might not appear properly.
  • Consider TextMeshPro: If the issue persists, consider switching to TextMeshPro, as it typically handles fonts better and offers more features.

Next Steps

  • Share any error messages you see in the Unity console.
  • Provide snippets of your grab script and button setup for more detailed help.
  • Indicate the versions of Unity and Needle Engine that you are using.

Refer to these documentation links for additional insights:

Feel free to ask if you need clarification on any specific point or further assistance!

1 replies left - Get a PRO license for more AI replies.
thread_rcVYk2fw9DMD1vlhAHuBiTpr
Reply to this message to continue the conversation