Search Unity

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.