Class TransformExtensions
Inherited Members
Namespace: BomberDogs.Extensions
Assembly: Assembly-CSharp.dll
Syntax
public static class TransformExtensions
Methods
| Edit this page View SourceSetZPosition(Transform, float)
Change only z position
Declaration
public static void SetZPosition(this Transform transform, float z)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | transform | transform |
| float | z | new Z value |
SnapPosition(Transform)
Centers to the middle of each 1-meter square in the scene space. For example, 0.01 becomes 0.5, 0.99 becomes 0.5, 1.01 becomes 1.5, and so on.
Declaration
public static void SnapPosition(this Transform transform)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | transform |