xetra11 Posted October 26, 2016 Share Posted October 26, 2016 Hey guys, I really wonder why I was not able to find anything about changing a cursor with PIXI.js or very little with incomplete practical examples. I found out that I need to set something like this: sprite.buttonMode = true; sprite.interactive = true; sprite.defaultCursor = someSprite; What I'd like to do is to change the cursor right on start and keep it that way for the whole canvas area. How do I achieve that? greets Charlie Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted October 26, 2016 Share Posted October 26, 2016 You can assign defaultCursor to whole canvas area look into fields of InteractionManager. "renderer.interaction.SOMETHING" Quote Link to comment Share on other sites More sharing options...
xetra11 Posted October 26, 2016 Author Share Posted October 26, 2016 so when my top level container is called "stage" I could do stage.defaultCursor = mySprite ? I tried this it did not worked somehow can you give me a working code example via JSFiddle or something? Quote Link to comment Share on other sites More sharing options...
xetra11 Posted October 26, 2016 Author Share Posted October 26, 2016 Is it really that complicated? 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.