Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

IEnumerator acting weird

Discussion in '2022.1 Beta' started by ngerbens, Feb 16, 2022.

  1. ngerbens

    ngerbens

    Joined:
    Nov 20, 2017
    Posts:
    33
    Hello,

    My script runs fine in Unity 2020.
    But when I run it in 2022 my IEnumerator (performing transform.RotateAround) acts really glitchy. The coroutine keeps running sometimes (while it should loop once), and also stopping randomly or restarting (after the event is called of course).

    Anybody an idea? Is there something I should know about new C# stuff and 2022?
     
    Last edited: Feb 16, 2022
  2. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    Hi @ngerbens,

    Could you please submit a bug report for this issue with a reproduction project attached?