Gerente Posted August 1, 2015 Share Posted August 1, 2015 Any idea how to change the Mouse cursor on mouse over? http://www.babylonjs-playground.com/#21YCLG Quote Link to comment Share on other sites More sharing options...
RaananW Posted August 1, 2015 Share Posted August 1, 2015 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 Quote Link to comment Share on other sites More sharing options...
Gerente Posted August 2, 2015 Author Share Posted August 2, 2015 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. Quote Link to comment Share on other sites More sharing options...
RaananW Posted August 2, 2015 Share Posted August 2, 2015 http://www.babylonjs-playground.com/#21YCLG#2There 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. Gerente 1 Quote Link to comment Share on other sites More sharing options...
Gerente Posted August 2, 2015 Author Share Posted August 2, 2015 http://www.babylonjs-playground.com/#21YCLG#2There 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. Thanks for the idea, I will see if I use it Quote Link to comment Share on other sites More sharing options...
Kemal UÇAR Posted October 11, 2016 Share Posted October 11, 2016 new way for that maybe helps someone thanks for DK PG : http://www.babylonjs-playground.com/#21YCLG#5 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted October 11, 2016 Share Posted October 11, 2016 indeed, there scene.hoverCursor to change the cursor value. Kemal UÇAR 1 Quote Link to comment Share on other sites More sharing options...
Kemal UÇAR Posted October 11, 2016 Share Posted October 11, 2016 TY Dad72 ; i searched many topics and found solution here , but no PG then add newone for helping if works ways not very important . Quote Link to comment Share on other sites More sharing options...
Kemal UÇAR Posted October 20, 2016 Share Posted October 20, 2016 Microsoft Edge Browser dont support .png file types for cursor in Babylon scene ; i tested in Chrome ok, Firefox ok, but Edge not, if convert .png to .cur file type its working ( pls test this PG http://www.babylonjs-playground.com/#21YCLG#5 ) Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.