
Draw order in Rive is typically determined by the layer hierarchy; layers at the top are rendered in front of those below them. However, Draw Rules allow you to override this hierarchy during an animation, enabling objects to dynamically move behind or in front of others regardless of their position in the hierarchy panel.
- Target Limitations: You can only set a Shape layer as a target for a draw rule; Groups or Bones cannot be selected as targets.
- Rigging Flexibility: You can create multiple draw rules for a single layer, which is extremely useful for complex character rigs where limbs need to swap depth frequently.
- Keyframing Tip: If clicking "Normal" doesn't automatically create a keyframe, try toggling the rule button to force the timeline to register the state change.