Arte Posted August 22, 2017 Share Posted August 22, 2017 Hi, I have a stupid question. How to change button text color? https://www.babylonjs-playground.com/#XCPP9Y#4 Quote Link to comment Share on other sites More sharing options...
SvenFrankson Posted August 22, 2017 Share Posted August 22, 2017 This way works : https://www.babylonjs-playground.com/#XCPP9Y#178 As children[0] returns the contained textControl. Might be easier if textControl were exposed through a text public property on the Button object ? Dad72 and Arte 2 Quote Link to comment Share on other sites More sharing options...
Arte Posted August 22, 2017 Author Share Posted August 22, 2017 8 minutes ago, SvenFrankson said: This way works : https://www.babylonjs-playground.com/#XCPP9Y#178 As children[0] returns the contained textControl. Might be easier if textControl were exposed through a text public property on the Button object ? Solved! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 22, 2017 Share Posted August 22, 2017 The problem of exposing text is that you can have a button with only an image Arte 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.