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.
  2. 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,102
    Hi @ngerbens,

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