How to Record mouse cursor using Unity Recorder?

Hi!

I love the Unity Recorder, the only issue for me is that it for me right now isn’t capturing the cursor.
Does anyone know how to get the recorder to include the cursor?

I found [an old thread]( Unity Recorder update page-2) that said to put the collection method to “Game” but I don’t have that option in the Recorder-menu in Unity 2020.3.6f. (LTS). I also added the script the unity-employee in the thread wrote one could try to add the mouse. I added the script to a gameobject that runs on start, but it’s not making the recorder record the mouse either.

Does anyone know how to go about? I’ve found no other resources on this.

Actually this comment is working for me in 2021.2.X:

Unity Recorder update page-2#post-3502580

Cursor.SetCursor() didn’t work for me. Hopefully I’m doing something wrong. I’ve found no other resources too. @HuldaGnodima let me know if you’ve found any solution please.

#if UNITY_EDITOR
    using UnityEditor;
#endif

public class cursorVisible : MonoBehaviour
{
    void Start()
    {
        #if UNITY_EDITOR
            Cursor.SetCursor(PlayerSettings.defaultCursor, Vector2.zero, CursorMode.ForceSoftware);
        #endif
    }
}
2 Likes

I actually didn’t manage to get it to work unfortunately. Eventually I stopped looking for a fix. But I would love to get it to work, I’ll have a look around again. If you find a solution, please share. I will absolutely do the same!

1 Like

I’m having the exact same problem. Was a fix finally found for this?

I am experiencing the same thing. In the first place, I can also check if my mouse is working properly. After that, I’ll track my mouse.

unity has a recorder

#if UNITY_EDITOR
    using UnityEditor;
#endif

public class cursorVisible : MonoBehaviour
{
    void Start()
    {
        #if UNITY_EDITOR
            Cursor.SetCursor(PlayerSettings.defaultCursor, Vector2.zero, CursorMode.ForceSoftware);
        #endif
    }
}

Set cursor texture by the Player settings window (default texture is None), I could record the cursor.

4 Likes

Unfortunately not working for me. Once I set “CursorMode.ForceSoftware” I don’t see cursor at all in the Game view. If changed to “CursorMode.Auto” I see my custom cursor, however it is still not recorded by Unity Recorder.
Unity 2022.3.8, HDRP, Unity Recorder 4.0.1

UPDATE: CursorMode.ForceSoftware doesn’t work with New Input System.

I’m also interested on how to do this to capture UI interactions.

Just provide a texture instead of PlayerSettings.defaultCursor, It worked for me…

In Unity 6.0 CursorMode.ForceSoftware is working for me with the new input system in the editor with Recording.