Search Unity

Whole cursor is transparent - why?

Discussion in 'Getting Started' started by AdrianHil, Dec 6, 2018.

  1. AdrianHil

    AdrianHil

    Joined:
    Feb 1, 2018
    Posts:
    26
    Hi dear community!

    I'm trying to do simple thing - replace default cursor with my cursor, this is what I'm doing:
    1. I prepared simple 64x64 png image:
    testCursor.png
    2. Settings from Unity:
    unitySettings.JPG
    3. What I'm seeing in Game View
    cursorInUnity.jpg

    I'm setting this cursor through the code using this simple line:
    Code (CSharp):
    1. Cursor.SetCursor(CursorTexture, CursorHotspot, CursorMode.Auto);
    My goal is to remove just black background and leave star as it is, without making it transparent..

    Could you please advise me how to solve this problem ?
     
  2. Bill_Martini

    Bill_Martini

    Joined:
    Apr 19, 2016
    Posts:
    445
    Because you're using 'From Gray Scale' for alpha source.