Open GregVGW opened 1 year ago
The example on changing skins recommends calling setSkin(null) before calling setSkinByName, which is working for us.
setSkin(null)
setSkinByName
However, the setSkin method is not exposed from the ISkeleton interface, requiring us to cast spine.skeleton to any in order for TypeScript to build.
setSkin
ISkeleton
spine.skeleton
any
I've taken a look and all the runtimes do have the setSkin method within the Skeleton class, so this seems like a reasonable change to make.
Skeleton
More than happy to create a PR for this if the change seems good.
The example on changing skins recommends calling
setSkin(null)
before callingsetSkinByName
, which is working for us.However, the
setSkin
method is not exposed from theISkeleton
interface, requiring us to castspine.skeleton
toany
in order for TypeScript to build.I've taken a look and all the runtimes do have the
setSkin
method within theSkeleton
class, so this seems like a reasonable change to make.More than happy to create a PR for this if the change seems good.