Hi, I am trying to process the Invoke command from inside the OnPostRender subroutine, but it is not working properly. The procedure below “A0_1_N” does get called, but it is too late. I have tried using 0f as the time, but it makes no difference.
The routine A0_1_N() draws lines on the screen. If I call this routine directly, it works fine, even from inside the OnPostRender. It is only when I use the Invoke, the lines are not drawn.
void OnPostRender()
{
float ss = 0f;
Invoke("A0_1_N", ss);
// A0_1_N();
}
I think it might be getting called to late, after all the ‘render’ routines have been processed. I used 0f to try and force it run immediately, but it does not work.
Can somebody suggest how I can get the Invoke command to immediately run the ‘draw lines’ routine from inside the OnPostRender, or anay other drawing routine?
Thanks
Stu