Sign in to follow this  
Gerente

Change Cursor on Mouse over

Recommended Posts

Eh, what do you want to change it to? to make it change automatically, set the mesh to be pickable.

This is a cleaner version of what you did - http://www.babylonjs-playground.com/#21YCLG#1

 

I don't understand what change you did. When the mouse is over the sphere I want a "MOVE" cursor, when it leaves it need to go back to the "DEFAULT", but for some reason the "hand" cursor is overwriting any cursor that you assign in the Action function.

Share this post


Link to post
Share on other sites

http://www.babylonjs-playground.com/#21YCLG#2

There must be some better way of doing it, but hey - I love those little hacks :-)

The scene itself is changing the pointer, and there is no way internally to change this function. So registering an after-render function is a safe way to solve it.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.