うにてぃブログ

主にUnityとC#に関する記事を書いていきます

2020-10-17から1日間の記事一覧

【Unity】Vector 系で利用できるインデクサー

Vector2, Vector3, Vector4, Vector2Int, Vector3Int にはインデクサーが定義されている ※ Color にもある インデクサーとは下記のようなもので public float this[int index] { get { switch (index) { case 0: return this.x; case 1: return this.y; defa…