Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Toggle Sprite Renderer problem

Discussion in 'Visual Scripting' started by sinjinn, Oct 31, 2020.

  1. sinjinn

    sinjinn

    Joined:
    Mar 31, 2019
    Posts:
    149
    Hey. Im trying to toggle the mesh on and off on a button press, but it seems to skip some presses....anyone know the problem. Ive set player rigidbody to continuous, using as a coroutine seems to make it slightly more reliable, but it should be one to one. Whats wrong with my graph?
     

    Attached Files:

  2. Ex-Crow

    Ex-Crow

    Joined:
    Aug 14, 2020
    Posts:
    111
    Try putting the input detection part in Update.