Search Unity

MatchTarget works in Build but not in Editor

Discussion in 'Scripting' started by froilan_dE_dios, Dec 3, 2020.

  1. froilan_dE_dios

    froilan_dE_dios

    Joined:
    Jul 28, 2015
    Posts:
    17
    Created a project with MatchTarget in v2018 and updated to v2019. Discovered that while the MatchTarget seems broken in the Editor, when I Built it, it works fine. What setting do I have to change in the Editor to make the Editor behave just like the Build?
     
  2. froilan_dE_dios

    froilan_dE_dios

    Joined:
    Jul 28, 2015
    Posts:
    17
    Hope this is worth the necro :)

    Unity matchtarget seems to look correct only when the fps is capped!!!

    Put this code in the Start function of any gameobject on scene.

    Application.targetFrameRate = 60;

    Hope this helps helps somebody else :)
     
    Last edited: Oct 22, 2022