Recorder not capturing mouse-cursor (despite me via code setting it as enabled)

Hi!

As per the title, no matter what I do I can’t seem to get the recorder to capture my cursor (custom or default).
I found this thread (2017): Unity Recorder update page-2#post-3503657

It’s suggested that the cursor will be captured if you follow these two steps:
1. Via code enable cursor (swhich I have done):

    void Start()
    {
        //Set Cursor to not be visible
        Cursor.visible = true;
    }

2. Set the collection method to Game
It seems that newer versions of the recorder don’t have the same options, but I put the “Source” option to “Game View”. These are my settings:

But none of this is working. My recorded videos still do not have the mouse cursor in them. Is there anyone who knows how to enable it? I’ve googled and can’t find anything more recent than the 2017 thread I linked above.

Thanks in advance!

Hey,

I was able to have a custom cursor get recorded successfully in a GameView with the following code:

    public class blah : MonoBehaviour
    {
        void Start()
        {
            var tex = AssetDatabase.LoadAssetAtPath<Texture2D>("Assets/tex.png");
                Cursor.SetCursor(tex,new Vector2(0.5f,0.5f), CursorMode.ForceSoftware );
        }
    }

I tried both HDRP and legacy pipeline under unity 22.1 with recorder version 4.0

Were you able to see your cursor move successfully in the game view ?

PS: This is a nifty feature I was not aware of inside Unity :slight_smile:

1 Like

First of all your avatar is adorable, I love it!
Second, thank you so much for looking into this.

When you mentioned it working for you on HDRP (and legacy pipeline) I became suspicious, becuase I’m also using the HDRP but together with the 2D Renderer - Experimental. Thought it might be that so I tried swapping out the 2D renderer for a regular Renderer, but it’s still not recording the mouse cursor. I’m on Unity version 2020.3.20f1.

Would you mind screenshotting your movie-settings? Maybe I’m missing something?

I’ve seen youtube comments on Unity Recorder tutorials that are just a week - 6 months old of people not being able to record the mouse. So I think I might not be alone. Could it be a bug?

Thanks so much in advance! Hope we’ll find a solution

//Hulda

There’s really nothing special: a default movie recorder.
I’ve done it in an empty HDRP project (it’s actually a legacy project converted into HDRP using the Wizard):

Thank you! Looks like we have the same settings at least.
I tried it in another project and it also isn’t recording in that one.

I’m going to try to make a completely new project and get back to you to see if it works! Thanks for your patience.

EDIT: If that doesn’t work maybe I can PM you my build, and you can see if the project records the cursor on your system? Only if that is OK for you, maybe that will give a clue!

For me, problem is that New Input System doesn’t work with CursorMode.ForceSoftware. So it seems’ there is no way to use quite old New Input System and record cursor by Unity Recorder.