文档

Unity Engine

Unity Engine

SnapAxis

Defines the axes that can be snapped.
阅读时间1 分钟最后更新于 1 个月前

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.