C#が用意している変数の型一覧
int | 整数を扱う型 |
float | 少数を扱う型 |
string | 文字列を扱う型 |
bool | 真偽値を扱う型(true ,false) |
Vector3 | 3次元ベクトルを扱う型 x,y,z変数 Vector3(1,1,1) |
Transform | ゲームオブジェクトの位置、回転、スケールを表す型 |
GameObject | シーンに存在するあらゆるものを表現するための型 |
GameObjectの変数名
activeInHierarchy | Defines whether the GameObject is active in the Scene. |
activeSelf | ゲームオブジェクトのローカルのアクティブ状態(読み取り専用) |
isStatic | ゲームオブジェクトの static を指定するエディターのみの API |
layer | The layer the game object is in. |
scene | ゲームオブジェクトが属しているシーン |
tag | ゲームオブジェクトのタグ |
transform | GameObject にアタッチされている Transform |
GameObjectの変数名の呼び出し方
GameObject型.変数名;
GameObject型.transform.Translate(x,y,z);