Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Bug [Case 1400904] Second multiplayer event system breaks Transition Color Tint

Discussion in 'Input System' started by LeonidDeveloper, Feb 5, 2022.

  1. LeonidDeveloper

    LeonidDeveloper

    Joined:
    Jan 23, 2021
    Posts:
    17
    The second multiplayer event system makes the buttons darker. And another effect - the buttons flash when the windows folder is on top of the game.
    When I manually turn off second multiplayer event system - the colors are restored.
    When I change button transition from Color Tint to none - shading disappears.
    It looks like all colors are applied at once (Normal, Highlighted, Pressed, Selected, Disabled)


    Windows 10 21H2
    Unity 2020.3.27f1
    Input System 1.3.0
    Universal RP 10.8.1 scr1.png scr2.png
     
  2. LeonidDeveloper

    LeonidDeveloper

    Joined:
    Jan 23, 2021
    Posts:
    17
    Just checked, this bug is reproduced in the built-in render too. To reproduce the bug:

    1. New 3D project
    2. Create a Button
    3. Delete EventSystem
    4. Install Input System 1.3.0
    5. Add Multiplayer Event System to Canvas
    6. Select Player Root (Canvas)
    7. Play
    8. check color (ok)
    9. duplicate Canvas
    10. check color (the colors have darkened)
    11. turn off one Multiplayer Event System
    12. check color (colors restored)
     
  3. LeonidDeveloper

    LeonidDeveloper

    Joined:
    Jan 23, 2021
    Posts:
    17
    In the version of Input Systems 1.2.0, the bug is not reproduced.
     
  4. LeonidDeveloper

    LeonidDeveloper

    Joined:
    Jan 23, 2021
    Posts:
    17
    I think I found what causes this bug. CanvasGroup.interactable{ get; set; }
    https://github.com/Unity-Technologi...bc93b068453c63d1c4125dcc9dc3cfeb6ce93aa93R105

    Additionally in the profiler I get every update too many (~36 from every MultiplayerEventSystem) UIBehaviour.OnCanvasGroupChanged in MultiplayerEventSystem.Update()

    I get the same behavior if I add this script to a canvas group, without any input system, just a canvas group and a button inside.
    Code (CSharp):
    1. public class CanvasGroupBreaker : MonoBehaviour
    2. {
    3.  
    4.     CanvasGroup canvasGroup;
    5.     void Start()
    6.     {
    7.         canvasGroup = GetComponent<CanvasGroup>();
    8.     }
    9.     void Update()
    10.     {
    11.         canvasGroup.interactable = !canvasGroup.interactable;
    12.         canvasGroup.interactable = !canvasGroup.interactable;
    13.     }
    14. }
    I hope this bug will be noticed and fixed by the unity staff. Or If you know how to get around this please tell me.

    interactable.png
     
  5. MarsCitizen_1

    MarsCitizen_1

    Joined:
    Jun 2, 2016
    Posts:
    20
    Same issue. Like a dummy, I worked around the zany coloring problems by redesigning all my Selectable coloring schemes. Then I coded around some of the other glitches, only to discover 2 more new issues.
     
  6. LeonidDeveloper

    LeonidDeveloper

    Joined:
    Jan 23, 2021
    Posts:
    17
  7. Ominos_Amethyst

    Ominos_Amethyst

    Joined:
    Dec 15, 2021
    Posts:
    11
    Please, keep voting that issue, I sill have it in version 2022.1.7f1