UNPKG

phaser4-rex-plugins

Version:
9 lines (8 loc) 235 B
var GetGLtexture = function (gameObject) { if (gameObject.glTexture) { return gameObject.glTexture; } else if (gameObject.frame) { return gameObject.frame.glTexture; } } export default GetGLtexture;