Open dario-zubovic opened 6 months ago
Managed to narrow down which command is producing invalid generated code:
[YarnCommand("test")]
public static IEnumerator Test()
{
yield return null;
}
However, these signatures produce valid code:
public static void Test()
public static IEnumerator Test(string parameter)
public IEnumerator Test()
So I would deduce that in order to generate broken code, method tagged with YarnCommandAttribute
must:
Note that methods with same signature didn't cause any issues with Yarn 2.4.
What is the current behavior?
Please provide the steps to reproduce, and if possible a minimal demo of the problem: Just import development/v3 branch in Unity 2022.3.22f1.
What is the expected behavior? Generated code should compile without any errors.
Please tell us about your environment: