Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

PIXI loader does not load pictures, returns 1x1 textures #118

Open
pavelgramenitsky opened this issue Feb 28, 2020 · 0 comments
Open

PIXI loader does not load pictures, returns 1x1 textures #118

pavelgramenitsky opened this issue Feb 28, 2020 · 0 comments

Comments

@pavelgramenitsky
Copy link

app.loader .add('image0', './../assets/icon.png') .load(this.start)

//console.log(app.loader.resources.image0.texture)

Texture { "_events": Object {}, "_eventsCount": 0, "_frame": Rectangle { "height": 1, "type": 1, "width": 1, "x": 0, "y": 0, }, "_rotate": 0, "_updateID": 0, "_uvs": null, "baseTexture": BaseTexture { "_destroyed": false, "_enabled": 0, "_events": Object { "loaded": EE { "context": [Circular], "fn": [Function onBaseTextureLoaded], "once": true, }, }, "_eventsCount": 1, "_glTextures": Object {}, "_virtalBoundId": -1, "hasLoaded": false, "height": 100, "imageType": null, "imageUrl": "assets/images/sprites/test/test_8.png", "isLoading": false, "isPowerOfTwo": false, "mipmap": true, "origSource": null, "premultipliedAlpha": true, "realHeight": 100, "realWidth": 100, "resolution": 1, "scaleMode": 0, "source": HTMLImageElement { "_base64": "data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==", "_checkEmitter": [Function bound _checkEmitter], "_complete": true, "_load": [Function bound _load], "_onload": [Function anonymous], "addEventListener": [Function bound addEventListener], "className": Object { "baseVal": "", }, "crossOrigin": "anonymous", "emitter": BaseEventEmitter { "_currentSubscription": null, "_subscriber": EventSubscriptionVendor { "_currentSubscription": null, "_subscriptionsForType": Object { "error": Array [ EmitterSubscription { "context": undefined, "eventType": "error", "key": 0, "listener": [Function bound _onError], "subscriber": [Circular], }, ], "load": Array [ EmitterSubscription { "context": undefined, "eventType": "load", "key": 0, "listener": [Function bound complete], "subscriber": [Circular], }, ], "progress": Array [ EmitterSubscription { "context": undefined, "eventType": "progress", "key": 0, "listener": [Function bound _onProgress], "subscriber": [Circular], }, ], }, }, }, "height": 1, "localUri": "file:///data/user/0/host.exp.exponent/files/ExperienceData/%2540pavelgramenitsky%252Fpixi-card-app/6df60ad0-5a0c-11ea-a9fb-ebce6102bdd0-b64image.gif", "nodeName": "IMG", "removeEventListener": [Function bound removeEventListener], "style": Object {}, "width": 1, }, "sourceScale": 1, "textureCacheIds": Array [ "image555", "assets/images/sprites/test/test_8.png", ], "touched": 0, "uid": 19, "width": 100, "wrapMode": 0, }, "defaultAnchor": Point { "x": 0, "y": 0, }, "noFrame": true, "orig": Rectangle { "height": 1, "type": 1, "width": 1, "x": 0, "y": 0, }, "requiresUpdate": false, "textureCacheIds": Array [ "image555", "assets/images/sprites/test/test_8.png", ], "transform": null, "trim": undefined, "valid": false, }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant