P
paul

  • Mar 12, 2022
  • Joined Mar 7, 2022
  • Okay, I solved the problem. Rather, there is an incompatibility with the new version of Lean Touch (Latest release date
    Mar 4, 2022). In the FocusOnClick file I replaced the code

    protected override void OnSelected()
        {
            print("OnSelect " + gameObject.name);
            if (follow)
                CameraEvents.OnRequestObjectFollow?.Invoke(gameObject, focusOnFollow);
            else
                CameraEvents.OnRequestObjectFocus?.Invoke(gameObject);
        }

    with

    protected override void OnSelected(LeanSelect select)
        {
            base.OnSelected(select);
            print("OnSelect " + gameObject.name);
            if (follow)
                CameraEvents.OnRequestObjectFollow?.Invoke(gameObject, focusOnFollow);
            else
                CameraEvents.OnRequestObjectFocus?.Invoke(gameObject);
        }

    and respectively for the method OnDeselected

    • Hi, Today is my first contact with the TOUCH CAMERA PRO asset. As soon as I enter the asset, the following messages are returned:
      Assets \ Exoa \ TouchCameraPro-Demo \ Scripts \ FocusOnClick.cs (10,29): error CS0115: 'FocusOnClick.OnSelected ()': no suitable method found to override
      and
      Assets\Exoa\TouchCameraPro-Demo\Scripts\FocusOnClick.cs(19,29): error CS0115: 'FocusOnClick.OnDeselected()': no suitable method found to override

      any idea how to fix it?

      My Unity Version 2020.3.30f1.1607