31-05-2022, 12:38 PM
(31-05-2022, 11:12 AM)josemendez Wrote: Hi,
Just tested the script on iOS (iPhone 7) and it works just fine.
Have you checked the console in XCode for null ref errors or other issues that would be preventing the script from running at all?
Only if Input.simulateMouseWithTouches is enabled, and even then it only works for 1 touch (the first one). This is mentioned in the script's comments:
Code:/**
* Very simple mouse-based input. Not ideal for multitouch screens as it only supports one finger, though.
*/
private void ProcessInput()
{
Hi Jose,
The problem is about the shader code in AddMouseLine() method.
Code:
lineRenderer.sharedMaterial = new Material(Shader.Find("Unlit/Color"));
I don't know why but shader is null after that code. I created and assigned a material and it is working now. Last question; which solver backend do you recommend for mobile games, Oni or Burst? Thanks for your support.