Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

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