public static float SnapValue (float val, float snap);

파라미터

valueThe value to snap.
snapThe increment to snap to.

반환

float If snapping is active, rounds value to the closest multiple of snap (snap can only be positive).

설명

Rounds value to the closest multiple of snap if snapping is active. Note that snap can only be positive.


파라미터

valueThe value to snap.
snapThe increment to snap to.

반환

void If snapping is active, rounds value to the closest multiple of snap (snap can only be positive).

설명

Rounds value to the closest multiple of snap if snapping is active. Note that snap can only be positive.


파라미터

valueThe value to snap.
snapThe increment to snap to.

반환

void If snapping is active, rounds value to the closest multiple of snap (snap can only be positive).

설명

Rounds value to the closest multiple of snap if snapping is active. Note that snap can only be positive.