SpriteRenderer component configuration
const spriteRenderer = new SpriteRenderer({ image: this.assetManager.getImage("image.png"), width: 1920, height: 1080, offset: new Vector2(0, 0), flipHorizontally: false, flipVertically: false, rotation: 0, opacity: 1, maskColor: "#FF0000", maskColorMix: 0, tintColor: "#00FF00", layer: "Default", slice: {x: 0, y: 0, width: 1920, height: 1080}, scale: new Vector2(1, 1), tiled: new Vector2(1, 1), smooth: false}); Copy
const spriteRenderer = new SpriteRenderer({ image: this.assetManager.getImage("image.png"), width: 1920, height: 1080, offset: new Vector2(0, 0), flipHorizontally: false, flipVertically: false, rotation: 0, opacity: 1, maskColor: "#FF0000", maskColorMix: 0, tintColor: "#00FF00", layer: "Default", slice: {x: 0, y: 0, width: 1920, height: 1080}, scale: new Vector2(1, 1), tiled: new Vector2(1, 1), smooth: false});
SpriteRenderer component configuration
Example