

The class that allows you to set, manipulate and use cursors ( Answer).Let’s develop this skill by finding the function to set a cursor in this exercise. Traversing the documentation and finding answers to your own questions is definitely an important skill to have. This is an essential skill for all developers, and Unity’s documentation is quite nice so it shouldn’t be too difficult. Reading Unity Documentation (Optional)Ī good exercise for the reader would be to try to find out what function we are going to use from the Unity documentation. This will make sure your colours are reproduced accurately, at the cost of size (though, for a cursor sprite, the size shouldn’t be very big). Most importantly, you’ll have to change the texture type to Cursor in the inspector with your cursor texture selected.Īdditionally, for pixel textures like the one I will be using, set the filter mode to Clamp to disable anti-aliasing (so your texture doesn’t get blurred), and the Format to RGBA 32 bit if you have a colourful image that you don’t want compressed. You’ll want to import ( Import New Asset > /path/to/your/asset) your custom cursor into Unity, but you should change a few settings when you do this. You can make one in software like inkscape (free, extremely powerful vector image maker) or Aseprite (paid but cheap pixel art tool). jpeg, etc.) and probably with small dimensions. It must be an image file of some type (.png. Day 4: Trac3 Video Demo + Custom Crosshair Cursor Importingįirst, make sure you have your custom cursor sprite ready.
