BaseTexture#forceLoaded()

forceLoaded(width, height)

Forces this BaseTexture to be set as loaded, with the given width and height.
Then calls BaseTexture.dirty.
Important for when you don't want to modify the source object by forcing in complete or dimension properties it may not have.

Parameters
Name Type Description
width Number
  • The new width to force the BaseTexture to be.
height Number
  • The new height to force the BaseTexture to be.
Source code: pixi/textures/BaseTexture.js (Line 137)
doc_phaser
2017-02-14 10:36:25
Comments
Leave a Comment

Please login to continue.