wiking_2_0
The from
factory is just a convenient way to initialize a Spine object, but it's not suitable for every use case.
We need to keep the constructor as general as possible; otherwise, users might not be able to apply their own asset loading strategies or use their own AttachmentLoader
, and so on.
There isn't a single standard way to initialize a Spine Skeleton, so some resources need to be initialized outside the Spine
Pixi constructor.
Alternatively, as many already do, you can create your own factory or extend the Spine object with a custom constructor.
Optimizations don’t occur in the constructor but in other methods that you’ll inherit as is. Changes might be happening in the constructor or in the factory, but that usually happens when you do breaking changes between versions. Indeed, in the 4.3-beta
branch, we have remove the deprecated from
form and constructor param from the Spine
class.
Maybe I’m just not seeing your point, though. Could you be more specific and show me exactly what you’d like to change here, or open a PR? PRs are always welcome if they add value to the runtime.