Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
1
Question by Raynoko · Jun 16, 2015 at 02:11 PM · buildwebgltexture2dchangecursor

SetCursor WebGL doesn't work

Hi, Im trying to change texture2D on Mouse Cursor, after click on UI Button. It's working in my Unity Editor, and when i build my project on standalone works too, but when i build my project on WebGL, setCursor doesn't work. Somebody help pls? Unity 5.1.0f2

Thanks Tomas

Comment
Add comment · Show 2
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 AndrewGrayGames · Sep 28, 2015 at 11:24 PM 0
Share

I too have this problem, as of Unity 5.2.0f3. I'm setting the cursor to a 32x32 sprite in a prototype I am working on.

You can see the issue occurring in this webplayer; by default the cursor should be a gauntleted hand. When a friendly unit is selected, mousing over a friendly unit should change the cursor to an arrow that means "move to this unit." When mousing over a hostile unit, it should change to a sword. When positioned over the unit, it should be an arrow with a shield, meaning "defend position." When an enemy unit is selected, the cursor should not change.

Ins$$anonymous$$d what you see, is random gibberish.

avatar image wahnishjorge25 AndrewGrayGames · Apr 12, 2016 at 01:26 PM 0
Share

Im on Unity 5.3.4f1 and use Cursor$$anonymous$$ode.ForceSoftware but I get a double cursor on firefox and chrome.

Any solutions for this?

alt text

cursor.jpg (34.1 kB)

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by Stefanie-Nobel · Mar 02, 2016 at 06:40 AM

Still the same problem with Unity 5.3.2, but set CursorMode to CursorMode.ForceSoftware. That helps!

Comment
Add comment · Show 4 · 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 wahnishjorge25 · Apr 12, 2016 at 01:28 PM 0
Share

Stefanie see my question with the texture. Im on 5.3.4 Get double cursor with ForceSoftware

avatar image Stefanie-Nobel · Apr 18, 2016 at 08:48 AM 0
Share

I can not find out, what was different before, when I had just a single cursor but now I've got double cursor as well.

$$anonymous$$y workaround is to set the cursor to none in the css file:

'#unity_container { ... cursor: none; }

and define my own default cursor when entering the unity container (in unity player settings). It is not the solution, I know, but I could not find out why we are getting the double cursor for now.

avatar image wahnishjorge25 Stefanie-Nobel · Apr 18, 2016 at 01:34 PM 0
Share

Ok, let me know if you find anything!

avatar image wahnishjorge25 Stefanie-Nobel · Apr 20, 2016 at 05:44 PM 0
Share

Still having the same issue, do you have any update on this? Im asking on another forum also, I let you know if I find a solution.

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

24 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Distribute terrain in zones 3 Answers

Do not build Resources files depending of the plateform 1 Answer

Why does my cursor image have artifacts in WebGL? 2 Answers

Questions about building game 2 Answers

Cursor appearance change when mouse over a GUI button 2 Answers


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