- Uređeno
Need to access visibility/alpha of slot of setuppose
Hi,
I need to access the visibility/alpha setting of a slot and/or attachment of the setup pose. Where can I find this in the runtime? Particularly Spine-TS or Spine-JS.
You can access all the slots of a Skeleton instance via the slots field, see spine-runtimes/Skeleton.ts at master · EsotericSoftware/spine-runtimes · GitHub
Each slot has a color field that you can modify at runtime to change alpha. spine-runtimes/Slot.ts at master · EsotericSoftware/spine-runtimes · GitHub
For visibility, it's best to manipulate the draw order on the skeleton before rendering. The draw order is a list of slots, in the order they should be drawn in. spine-runtimes/Skeleton.ts at master · EsotericSoftware/spine-runtimes · GitHub