Hey, I’m trying to access a sprite asset I added to an entity with an element component.
this.entity.element.spriteAsset
→ works, but returns the prite asset ID, so instead I wanna use:
this.entity.element.sprite
→ which according to the API should retun a reference to the sprite asset itself (see API), but I only get: null
.
Any ideas what it could be? Engine bug?