Method RoundToPixel
RoundToPixel(Vector3)
Round a arbitrary position to an integer pixel position. Works in world space.
선언
public Vector3 RoundToPixel(Vector3 position)
파라미터
타입 | 이름 | 설명 |
---|---|---|
Vector3 | position | The position you want to round. |
반환
타입 | 설명 |
---|---|
Vector3 | The rounded pixel position. Depending on the values of upscaleRT and pixelSnapping, it could be a screen pixel position or an art pixel position. |