Arte Posted September 14, 2017 Share Posted September 14, 2017 Hi All, Need help AGAIN. I have 2 Viewports, when I,m switching between cameras (scene.activeCamera=camera;) my buttons stop working. I don't know what I'm doing wrong. PlayGround Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 14, 2017 Share Posted September 14, 2017 Here we are: https://www.babylonjs-playground.com/#17DP89#4 Arte 1 Quote Link to comment Share on other sites More sharing options...
Arte Posted September 14, 2017 Author Share Posted September 14, 2017 Stupid me! @Deltakosh One day I'll buy you a drink with snacks. Thank you AGAIN. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 14, 2017 Share Posted September 14, 2017 Quote Link to comment Share on other sites More sharing options...
Arte Posted September 14, 2017 Author Share Posted September 14, 2017 @Deltakosh Your Nightmare is Here. GUI button stop working when using linkWithMesh. Line:52 PlayGround Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 15, 2017 Share Posted September 15, 2017 You're not my nightmare!! I love that people use my features:) So in your case you have to use layerMask: https://www.babylonjs-playground.com/#17DP89#7 Arte 1 Quote Link to comment Share on other sites More sharing options...
Arte Posted September 18, 2017 Author Share Posted September 18, 2017 On 9/15/2017 at 10:41 PM, Deltakosh said: You're not my nightmare!! I love that people use my features:) So in your case you have to use layerMask: https://www.babylonjs-playground.com/#17DP89#7 Working. In my case: cameraView.layerMask=1; advancedTexture.layer.layerMask = 2; Je vous remercie. Correct me if i'm wrong. GameMonetize 1 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.