Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  4. Nominations have been announced for this years Unity Awards. Celebrate the wonderful projects made by your peers this year and get voting! Vote here!
    Dismiss Notice
  5. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Whole cursor is transparent - why?

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

  1. AdrianHil


    Feb 1, 2018
    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:
    2. Settings from Unity:
    3. What I'm seeing in Game View

    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


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