Hi
Ashley, hope all is well. We just got finished porting the Spriter plugin to the new SDK, and there are a few of features from the original that are either missing or we couldn't locate in the docs as officially supported. We were able to find workarounds for all of them, but we would prefer to use the SDK as intended.
1. Accessing a plugin's own animation frames at runtime
We use SetHasAnimations(true) and load atlas PNGs into the plugin's animation frames at import time (editor-side). At runtime we need to enumerate those frames (legacy equivalent: GetObjectClass().GetAnimations()[0].GetFrames()), but we can't find a documented SDK v2 runtime API for this.
With the edit-time access, we're manually adding the images we need to the project files which works, but means duplicating image data.
2. Runtime methods/properties we couldn't find
There are also several runtime operations where we're probing multiple method names, because we couldn't find the documented SDK v2 equivalent. This is working as a temporary workaround, but we'd like to replace these with the correct single API call. Apologies if they're already in the docs. I did a few searches and I couldn't find them:
• Set origin/hotspot (SetOriginX/setOriginX, SetOriginY/setOriginY)
• Invalidate bbox (SetBboxChanged/setBboxChanged)
• Enable/disable collision (SetCollisionEnabled/setCollisionEnabled)
• Enumerate instances (instances(), getAllInstances(), GetInstances())
• Object type name (GetName(), .name)
• Instance UID (GetUID(), getUID(), getUid(), .uid)
• Container siblings (GetSiblings(), getSiblings())
• Picked/paired instance (getPickedInstances(), getFirstPickedInstance(), getPairedInstance())
• Sprite frame index (read) (_currentFrameIndex, currentFrameIndex, animationFrame)
• Sprite frame index (write) (_DoChangeAnimFrame(), _changeAnimFrameIndex, animationFrame)
• No-premultiply blend (renderer.SetNoPremultiplyAlphaBlend/setNoPremultiplyAlphaBlend)