The following are guidelines to follow when animating a character in Harmony if you intend to export it for use in Unity.
|Animation on Pegs||
When animating game sprites in Harmony, you should animate the body parts on their parent pegs or their deformations, and not on the drawing layers directly, to keep the drawing information and the animation information separate.
TIPTo facilitate this workflow, you can enable the Peg Selecton Mode option in the Tool Properties of the Transform tool. This will ensure that, when you click on a drawing layer in the Camera view, its parent peg is selected instead.
It is recommended to use geometrical transformations—done with the Transform tool or the Advanced Animation tools—to animate the body parts of your rig as much as possible, as those are easier for Unity and for graphics cards to render. You should only use deformations, drawings swaps or frame by frame animation when necessary.
If you want to use deformations for your animation, you must use Game Bone deformations. Game Bone deformations are similar to regular Bone deformations, but have less options and are designed to render the way Unity would render them—see About Game Bone Deformations.
Unity does not support Harmony's Curve or Envelope deformations. Hence, if you want to use these to animate your character, you will need to bake the animations made with Curve and Envelope deformations into frame by frame animations before exporting your sprite sheet. Note however that this will make the resulting sprite sheet heavier in file size as each frame of these animations will be exported as a single sprite—see Converting Deformation Animations to Drawings.
Unity does not support animations made with Harmony's Morphing tool. Hence, if you want to use these to animate your character using the Morphing tool, you will need to bake the animations made with this tool into frame by frame animations. Note however that this will make the resulting sprite sheet heavier in file size as each frame of these animations will be exported as a single sprite—see Converting Morphing Animations to Drawings.
Drawings that are not used by your character or its props will not be exported with the sprite sheet. Hence, you do not need to delete unused drawings from your scene to optimize the exported assets.