From 5773af096d9c97b9ad1839a57c2f5a93699cea9e Mon Sep 17 00:00:00 2001 From: Davide Tantillo Date: Thu, 20 Nov 2025 12:49:03 +0100 Subject: [PATCH] Show bounds in runtime when skeleton is in debug mode. --- spine-ts/spine-construct3/src/c3runtime/instance.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spine-ts/spine-construct3/src/c3runtime/instance.ts b/spine-ts/spine-construct3/src/c3runtime/instance.ts index 5a52b1bc4..9ec087bd6 100644 --- a/spine-ts/spine-construct3/src/c3runtime/instance.ts +++ b/spine-ts/spine-construct3/src/c3runtime/instance.ts @@ -249,6 +249,13 @@ class SpineC3Instance extends globalThis.ISDKWorldInstanceBase { renderer.setColor([0, 1, 0, 1]); renderer.convexPoly(this.circle(x1, y1, 2)); } + + // debug bounds + renderer.setAlphaBlendMode(); + renderer.setColorFillMode(); + renderer.setColorRgba(0.25, 0, 0, 0.25); + renderer.lineQuad(this.getBoundingQuad(false)); + renderer.line(this.x, this.y, this.x + this.propOffsetX, this.y + this.propOffsetY); } private circle (x: number, y: number, radius: number) {