文档

Unity Engine

Unity Engine

gridSnapEnabled

Gets or sets whether grid snapping is enabled.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static bool gridSnapEnabled { get; set; }

Remarks

When enabled, grid snapping will snap the translate handle to the nearest point on the SceneView grid when the Tool Handle Rotation is set to "Global".