Keisha Posted October 12, 2018 Share Posted October 12, 2018 Hello, Is there a way to truncate a text in Phaser3? Please help me. Link to comment Share on other sites More sharing options...
Keisha Posted October 12, 2018 Author Share Posted October 12, 2018 I found the solution. var length = 3; var myString = "ABCDEFG"; var myTruncatedString = myString.substring(0,length); // The value of myTruncatedString is "ABC" Link to comment Share on other sites More sharing options...
Recommended Posts