UserInputSettings.MouseIcon

Currently I am able to enable and disable the Player’s mouse being visible from within the UserInputSettings service, however I do not have any access to the mouse object itself through UserInputSettings. The developer page notes that PlayerMouse (And by extention Mouse) has been superseded by the UIS, but still doesn’t allow for access to the mouse itself.

My expected code;

UIS.MouseIconEnabled = true;
UIS.MouseIcon =  "ImageID";

However, I need to access the player in order to alter the Mouse’s Icon.

local Player = game.Players.LocalPlayer;
local Mouse = Player:GetMouse();
UIS.MouseIconEnabled = true;
Mouse.Icon =  "ImageID";

While not the worst thing in the world, it still seems odd that I can enable/disable a key property of the mouse, but not be able to alter or access the mouse itself.

There could be a reason for this, but I’ve just spent a little while scratching my head as to why this isn’t available.

9 Likes

If you think about it from a categorization standpoint it makes more sense.

The mouse image visibly moving across your screen is part of a User Input as you’re dragging your mouse across your desk, and to disable this functionality, it makes sense to do it through UIS.

On the other hand, the mouse icon image isn’t based on input from the user as its just an image. With that being the case, it makes sense to put it in its own category classified as mouse.

That’s my best guess as to why its like that. I hope this helped!

2 Likes