diff --git a/src/core/textures/Texture.js b/src/core/textures/Texture.js index 455d59c..0ce75d2 100644 --- a/src/core/textures/Texture.js +++ b/src/core/textures/Texture.js @@ -18,6 +18,14 @@ * let sprite2 = new PIXI.Sprite(texture); * ``` * + * Textures made from SVGs, loaded or not, cannot be used before the file finishes processing. You can check for this by checking the sprite's _textureID property. + * ```js + * var texture = PIXI.Texture.fromImage('assets/image.svg'); + * var sprite1 = new PIXI.Sprite(texture); + * //sprite1._textureID should not be undefined if the texture has finished processing the SVG file + * ``` + * You can use a ticker or rAF to ensure your sprites load the finished textures after processing. See issue #3068. + * * @class * @extends EventEmitter * @memberof PIXI