Skip to main content

编辑器入门中的捕捉

在编辑器入门中有两种类型的捕捉:

🌐 There are two types of snapping in the Editor Starter:

  • 时间线对齐
  • 画布对齐

启用捕捉

🌐 Enabling snapping

工具栏中有一个磁铁图标,它允许你启用和禁用吸附功能。
默认情况下,这个切换适用于时间轴和画布的吸附。

🌐 There is a magnet icon in the toolbar that allows you to enable and disable snapping.
By default, this toggle is for both timeline and canvas snapping.

此外,还有两个功能标志可以全局切换这些功能:

🌐 Also, there are 2 feature flags to toggle the features globally:

有一个键盘快捷键可以切换吸附: Shift+M。 要切换它,还有另一个功能标志:

时间线对齐

🌐 Timeline snapping

启用时间线吸附时,拖动时间线上的项目会自动吸附到其他项目上。

🌐 When timeline snapping is enabled, items in the timeline will snap to other items when dragging them.

画布对齐

🌐 Canvas snapping

启用画布吸附时,画布中的项目会吸附到画布的边缘或画布的中心,既水平又垂直。

🌐 When canvas snapping is enabled, items in the canvas will snap to the edges of the canvas, or the center of the canvas, both horizontally and vertically.

多个项目

🌐 Multiple items

当选择多个项目时,时间轴和画布对齐功能也同样有效。

🌐 Both timeline and canvas snapping work also when multiple items are selected.