-
-
Save todorok1/4fd9db649dd4a71f2096c56469cbc49b to your computer and use it in GitHub Desktop.
Vector3型のサンプル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Start() | |
{ | |
// Vector3型の変数を定義します。 | |
Vector3 myVector = new Vector3(3.0f, 4.0f, 5.0f); | |
// Vector3型のx成分を表示します。 | |
Debug.Log($"myVector.x : {myVector.x}"); | |
// この例だと以下のように表示されます。 | |
// myVector.x : 3 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment