Class SnappingUtility
Inheritance
System.Object
SnappingUtility
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: UnityEditor.U2D
Syntax
public static class SnappingUtility
Properties
enabled
Declaration
public static bool enabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
Snap(Single, Single)
Declaration
public static float Snap(float value, float snap)
Parameters
Type | Name | Description |
---|---|---|
System.Single | value | |
System.Single | snap |
Returns
Type | Description |
---|---|
System.Single |
Snap(Vector3)
Declaration
public static Vector3 Snap(Vector3 position)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position |
Returns
Type | Description |
---|---|
Vector3 |