Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SnapAxis

Defines the axes that can be snapped.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Enum
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
[Flags]public enum SnapAxis : byte

Fields

Value

Description

AllSnapping is available on all axes: x, y, and z.
NoneNo axes support snapping.
XSnapping is available only on the \x\ axis.
YSnapping is available only on the \y\ axis.
ZSnapping is available only on the \z\ axis.