These are chat archives for pixijs/pixi.js

17th
Jun 2018
scarejar
@scarejar
Jun 17 2018 03:57
what does this._ , the underscore, what does it mean? I know it's a naming convention but not sure what it means. Does it indicate "private"
?
Unravl
@Unravl
Jun 17 2018 04:55
hey guys. is it possible to get a texture from a string? var texture = app.loader.resources. + "car" + .texture; for example?
Chad Engler
@englercj
Jun 17 2018 06:58

what does this._ , the underscore, what does it mean? I know it's a naming convention but not sure what it means. Does it indicate "private"
?

Yes

hey guys. is it possible to get a texture from a string? var texture = app.loader.resources. + "car" + .texture; for example?

var texture = app.loader.resources["car"].texture;

Unravl
@Unravl
Jun 17 2018 07:04
i tried that
weird
Unravl
@Unravl
Jun 17 2018 07:52
nvm all good