[ContextMenu("Function")] Won't work if there is a Coroutine in the script .

I mean, even if it has nothing to do with the function i want it to run.

IEnumerator aaa()
{
yield return null;
}

[ContextMenu(“bbb”)]
void bbb()
{
//some stuff…
}

This one won’t work, why ? bug ?

You probably need to wrap the launch of the Co-routine inside of another function.

    [ContextMenu("Run aaa")]
    void Startaaa()
    {
        StartCoroutine(aaa());
    }
  
  
    IEnumerator  aaa()
    {
        yield return null;
    }

Thanks but it won’t work either…

Oh good to know thanks for the link.