GridAlignment
Class in Zigurous.Prototyping
Declaration
public sealed class GridAlignment : MonoBehaviourDescription
Snaps an object's position, rotation, and scale to grid increments.
Properties
| unitSize | The base unit scale of the grid. | 
| positionIncrement | The amount of units the position is rounded to on the grid. | 
| scaleIncrement | The amount of units the scale is rounded to on the grid. | 
| rotationIncrement | The amount of units the rotation is rounded to on the grid. | 
Methods
| AlignToGrid | Updates the transform of the object to align to the grid. | 
| Snap | Snaps a vector to the grid at a given increment. |