Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


gridSnapEnabled

Gets or sets whether grid snapping is enabled.
Read time 1 minuteLast updated 12 days ago

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".