alexoy Posted June 6, 2018 Share Posted June 6, 2018 Hi, Looks like there is no option to hide a sprite, like sprite.isVisible = false; - could you add it please? But please don't mention setting the size to 0 or removing/recreation the sprite it's an ugly hack, we do not do that with meshes and other things, right?! Quote Link to comment Share on other sites More sharing options...
trevordev Posted June 6, 2018 Share Posted June 6, 2018 Sure, how about this? https://github.com/BabylonJS/Babylon.js/pull/4456/ NasimiAsl and alexoy 2 Quote Link to comment Share on other sites More sharing options...
alexoy Posted June 6, 2018 Author Share Posted June 6, 2018 @trevordev, lightning fast How often do you build babylon.js? Already wanted to try EDIT: oh.. "The Travis CI build is in progress"- lets wait for Travis Quote Link to comment Share on other sites More sharing options...
trevordev Posted June 6, 2018 Share Posted June 6, 2018 I believe @Deltakosh does them nightly. Quote Link to comment Share on other sites More sharing options...
Guest Posted June 6, 2018 Share Posted June 6, 2018 It is done gents! trevordev 1 Quote Link to comment Share on other sites More sharing options...
alexoy Posted June 7, 2018 Author Share Posted June 7, 2018 @trevordev, @Deltakosh, unfortunately it doesn't work for 100%. For some reason, later in the scene I can't hide a sprite - http://playground.babylonjs.com/#RHRF2N#1 - wait for 5 secs, everything should disappear, but only label disappears. For some reason it's only possible to init a sprite as not visible, but not possible to hide it later. Quote Link to comment Share on other sites More sharing options...
sable Posted June 7, 2018 Share Posted June 7, 2018 Looks like lines 252 and 257 need to be adjusted to take into account sprites that have been made invisible. alexoy and trevordev 2 Quote Link to comment Share on other sites More sharing options...
trevordev Posted June 10, 2018 Share Posted June 10, 2018 Sorry, I think it should be good now. PR: https://github.com/BabylonJS/Babylon.js/pull/4483 . Thanks for the tip @sable sable and alexoy 2 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.