Jump to content

Search the Community

Showing results for tags 'pointerleave'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. PrimitivePointerInfo.PointerEnter and PrimitivePointerInfo.PointerLeave are not send to Sprite2D when Sprite2D is added to ScreenSpaceCanvas2D as child. Only ScreenSpaceCanvas2D receive these events. ScreenSpaceCanvas2D has 'enableInteractions : true' and my Sprite2D has 'isPickable : true'. background.pointerEventObservable.add( ( d, s )=>{ console.log("background enter") background.opacity = 0.5; }, BABYLON.PrimitivePointerInfo.PointerEnter ); background.pointerEventObservable.add( ( d, s )=>{ console.log("background exit") background.opacity = 1.0; }, BABYLON.PrimitivePointerInfo.PointerLeave ); background.pointerEventObservable.add(function (d, s) { console.log("background CLICK") }, BABYLON.PrimitivePointerInfo.PointerUp); Only PointerUp event is handled. When i was figuring it out i found following comment in babylon.canvas2d.js: If i restore commended code, events are coming, but i am not sure it is properly way ;-) I'm using babylon 2.6.0
×
×
  • Create New...