Summary
[Editor-Only]
Returns a copy of the `point` rounded to the nearest pixel of the
UnityEngine.SpriteRenderer
attached to
the `gameObject` (or its parent or children).
- Assembly
- PlatformerGameKit
.dll - Namespace
- PlatformerGameKit
- Containing Type
- PlatformerUtilities
Syntax
public static Vector2 RoundToPixel(GameObject gameObject, Vector2 point)
Parameters
Name | Type | Description |
---|---|---|
gameObject | GameObject | |
point | Vector2 |
Return Value
Type | Description |
---|---|
Vector2 |