Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by ders power · Dec 17, 2015 at 05:30 PM · cursor-customization

Black square cursor

I have a problem with build. I Play on Unity no problem but when I build it it seem black square like this alt text

but my cursor is alt text

ekran-alıntısı.png (167.4 kB)
like.png (46.1 kB)
Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ders power · Dec 17, 2015 at 03:05 PM 0
Share

this is my school project.

avatar image sleepandpancakes · Apr 22, 2017 at 12:38 AM 0
Share

is your cursor image uploaded correctly to this post? it's not showing the image for me

avatar image Andibleh · May 05, 2017 at 12:07 AM 0
Share

I have the exact same issue...wtf is going on????

3 Replies

· Add your reply
  • Sort: 
avatar image
4

Answer by Jessespike · Dec 17, 2015 at 06:42 PM

Quoting Eric5h5:

Try setting the texture type to Cursor, and limiting the size to 32x32. I found that while setting the cursor in the player settings worked in the editor, it did not show up in a build. I worked around that by using Cursor.SetCursor in a script instead.

Unity Answers - Creating a custom cursor

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Shippety · Jul 04, 2016 at 04:53 AM 0
Share

Worked for me, thanks!

avatar image aibolith · Apr 22, 2017 at 12:28 AM 0
Share

Didn't work for me. In all windows builds any attempts to set a cursor end up in a black square. I set the image properites to "Cursor", limited its size by 32, set it in a script and in Player Settings - it's still a goddamn black cursor. Just like the default program icon I can't change as well.

avatar image
3

Answer by AlienPentiumX · Oct 16, 2017 at 10:12 AM

Go to project window and search your image. Click on it and go to inspector. Then, change texture type to cursor and click apply!

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image reinfeldx · Nov 02, 2018 at 07:59 PM 0
Share

This works! Thanks!

avatar image
0

Answer by codemaker2015 · Jul 01, 2021 at 12:11 PM

 [SerializeField] Texture2D cursor;
 void Start() {
        Cursor.SetCursor(cursor, Vector3.zero, CursorMode.ForceSoftware);
 }
Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Arlorean · Apr 17 at 03:44 PM 0
Share

alt text I found that the Read/Write flags also needed to be set or the cursor just looked like a black square with some random dots on it.

screenshot-2022-04-17-at-164259.png (140.0 kB)

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Cursor.SetCursor() not working inside Start() 3 Answers

Default Cursor hourglass during app load 2 Answers

Cursor size with SetCursor or alternative? 1 Answer

Artifacts on cursor when using CursorMode.Auto 0 Answers

How to detect mouse leaving / entering the game window? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges