Ingo Chou Posted September 13, 2015 Share Posted September 13, 2015 Hi,How to hide sprites on screen when use BGui. Thanks in advance for your help. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 14, 2015 Share Posted September 14, 2015 Hello you can turn sprites rendering off by setting:scene.spritesEnabled = false Quote Link to comment Share on other sites More sharing options...
dbawel Posted September 14, 2015 Share Posted September 14, 2015 Could you please provide more info on what you're specifically trying to achieve? A simple description on what the user would be viewing as defined in the scene by object, sprite, color, etc. Otherwise, this question is much too vague for me to understand. Thanks, DB Quote Link to comment Share on other sites More sharing options...
Temechon Posted September 14, 2015 Share Posted September 14, 2015 If it's relative to a panel of bGUI, you can use the method :myPanel.setVisible(false) Quote Link to comment Share on other sites More sharing options...
Ingo Chou Posted September 15, 2015 Author Share Posted September 15, 2015 Thanks for your reply!There are skybox, ground, meshes, sprites, particle-system in my scene. It is work well before I use bGui.But all objects display in the center of screen as UI besides my real scene when I new a bGui system object.I do not add anything in bGui, just only new a bGui System .I can hide those meshes on UI by setting layer mask.But there are no layer mask support in sprites and particle-system.My question is:How to hide sprites and particle system on UI?thanks. Quote Link to comment Share on other sites More sharing options...
Temechon Posted September 15, 2015 Share Posted September 15, 2015 Well, you can't for now. @DK : Would it possible to add a layerMask for particle system and sprites ? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 15, 2015 Share Posted September 15, 2015 You can simply do scene.particlesEnabled = false or scene.spritesEnabled = false Isn't it enough? Quote Link to comment Share on other sites More sharing options...
Temechon Posted September 15, 2015 Share Posted September 15, 2015 I don't think so... I need to possibility to hide a partricle system, a sprite or a lens flare for a specific camera. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 15, 2015 Share Posted September 15, 2015 Ok I'll see what I can do Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 16, 2015 Share Posted September 16, 2015 Done (warning: no heavy tested) https://github.com/BabylonJS/Babylon.js/commit/3d68f4a419f5bff4829b12de4586fd357d494a11 Temechon 1 Quote Link to comment Share on other sites More sharing options...
Ingo Chou Posted September 17, 2015 Author Share Posted September 17, 2015 Everything is OK!Thanks.bGui is indeed very excellent! 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.