I obtained a collection of png icons from the asset store. I was planning to use these icon to replace the cursor depending on in-game actions.
public Texture2D pointer;
public Texture2D target;
public Texture2D doorway;
//some logic
Cursor.SetCursor(target, new Vector2(16, 16), CursorMode.Auto);
//some logic
Cursor.SetCursor(doorway, new Vector2(16, 16), CursorMode.Auto);
//some logic
Cursor.SetCursor(pointer, Vector2.zero, CursorMode.Auto);
Despite lacking syntax errors, this piece of code causes to unity to display the png icons with certain level of distortion.