notalentgeek Posted January 8, 2020 Share Posted January 8, 2020 These codes below: const bunnyTexture = new Texture.from('bunny.png'); const bunnySprite = new Sprite(bunnyTexture); And these codes below: const bunnySprite = Sprite.from('bunny.png'); Both codes seem do the same thing.... What are the differences? What is the best practice? Are the one is better than the other one on certain cases, etc.. Quote Link to comment Share on other sites More sharing options...
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.