10 lines
172 B
C#
10 lines
172 B
C#
using UnityEngine;
|
|
|
|
public static class VectorUtil
|
|
{
|
|
public static Vector4 ToVector(this Rect rect)
|
|
{
|
|
return new Vector4(rect.x, rect.y, rect.width, rect.height);
|
|
}
|
|
}
|