Skip to main content
You can change the draw order of your graphics at design time by moving items up and down the Hierarchy– but what if you want to change the draw order during an animation? Or what if you want to change the draw order without breaking the current hierarchical structure? Rive allows you to accomplish this with Draw Order Rules.

Draw Order rules

To animate the draw order of a group or shape, start by selecting it. Use the Draw Order section of the Inspector to create Draw Order Rules. Draw Order section of the Inspector with Normal, above calendar, and below calendar rules, and the Draw Order Rule popup set to above target The Normal rule is the default order (based on Hierarchy order). When the radio button next to this rule is active, the shape appears at its default draw order. Draw Order Rules allow you to select a target (note that this must be a drawable item, not a group) and whether to draw above or below the target.
The target must be a drawable item, like a shape. It cannot be a group.
If a rule conflicts with another, such as two objects each set to draw above the other, Rive can’t resolve the order. A warning icon with a Cyclic dependency tip appears next to the rule. Change or remove one of the rules to fix it. In Animate mode, use the radio button next to the Draw Order Rules to set a key. Note that these are Hold keys as Draw Order cannot be interpolated. Keying Draw Order Rules in Animate mode to move an icon above and below a calendar shape