Rive 101 logoRive 101
β„Ή AboutπŸ“‹ ChangelogδΈ­
0%
Progress0/88
8.4

Bind Direction

3m 19s
Rive 101- Bind Direction

This lesson covers the concept and application of Bind Directions inside Rive's Data Binding framework. The primary objective is to teach users how data flows between the View Model (Source) and the graphical canvas elements (Target). By walking through a clear example connecting a circle's X position to a numerical input variable, the video breaks down default source control, target-to-source mapping, bidirectional synchronization, and bind-once initializations, providing full control over interactive data architecture.

  • Directional Use Cases: Default workflow (Source to Target) works best for driving dashboard UI elements via code inputs. Target to Source is optimal when visual interactions need to export variables to code (e.g., custom controller joysticks). Bidirectional handles multi-input synchronized controllers, while Bind Once is highly recommended for static components requiring one-off layout placement upon loading to save resources.
  • Bidirectional Value Resolution: When establishing a bidirectional stream, data conflicts can arise during the initial frame if canvas layouts and database defaults don't match. Choosing between Prefer Target or Prefer Source guarantees clean rendering pipelines without unexpected visual jumps.
  • Workflow Navigation Tips: Managing data links requires jumping between layout elements and values. Utilizing the Command + 1 shortcut brings instantaneous focus back to the primary Hierarchy tree, helping keep layouts organized.