Documentation

Unity Engine

Unity Engine

Max(Vector2Int, Vector2Int)

Creates a vector that is made from the largest components of two vectors.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static Vector2Int Max(Vector2Int lhs, Vector2Int rhs)

Parameters

The first vector to compare.

The second vector to compare.

Returns

Type

Description

Vector2IntA vector that is made from the largest components of two vectors.

Remarks

Additional Resources: Vector2Int.Min function.