Nesh108 Posted June 12, 2017 Share Posted June 12, 2017 Hello! I am looking into using a Plane and turning it into a dialog box for my little game. I found the scale9 feature but that applies only to sprites on the canvas2d. Here is PG which shows what I managed to do: http://www.babylonjs-playground.com/#RNCYVM#13 Basically, I want to be able to switch the green plane with my 2D sprite. It would be easy to do it normally but I want to have access to the scale9 feature for scaling the box. Any idea? Quote Link to comment Share on other sites More sharing options...
adam Posted June 12, 2017 Share Posted June 12, 2017 Is this what you are trying to do? http://www.babylonjs-playground.com/#RNCYVM#14 Nesh108 and GameMonetize 2 Quote Link to comment Share on other sites More sharing options...
Nesh108 Posted June 12, 2017 Author Share Posted June 12, 2017 @adam Yeah! I cleaned it up and this is exactly what I wanted to do. Thanks! http://www.babylonjs-playground.com/#RNCYVM#15 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.