Base class for all entities in Unity Scenes.
Note: Many variables in the GameObject class have been removed. To access,
for example GameObject.renderer in csharp use GetComponent<Renderer>() instead.
See Also: Component.
| 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 | name という名のゲームオブジェクトを作成します |
| AddComponent | ゲームオブジェクトに className という名のコンポーネントクラスを追加します |
| BroadcastMessage | ゲームオブジェクトまたは子オブジェクトにあるすべての MonoBehaviour を継承したクラスにある methodName 名のメソッドを呼び出します。 |
| CompareTag | このゲームオブジェクトは tag とタグ付けされているかどうか |
| GetComponent | ゲームオブジェクトに type がアタッチされている場合は type のタイプを使用してコンポーネントを返します。ない場合は null です |
| GetComponentInChildren | 深さ優先探索でゲームオブジェクトまたはゲームオブジェクトの子たちの type からコンポーネントを取得します。 |
| GetComponentInParent | GameObject や深さ優先探索を活用して、親子関係にある親オブジェクトから type のタイプのコンポーネントを取得します。 |
| GetComponents | ゲームオブジェクトの type のすべてのコンポーネントを返します |
| GetComponentsInChildren | ゲームオブジェクトまたはゲームオブジェクトの子たちから type のすべてのコンポーネントを取得します。 |
| GetComponentsInParent | ゲームオブジェクトまたはその親たちから type のすべてのコンポーネントを返します |
| SendMessage | ゲームオブジェクトにアタッチされているすべての MonoBehaviour にある methodName と名付けたメソッドを呼び出します |
| SendMessageUpwards | ゲームオブジェクトと親(の親、さらに親 ... )にアタッチされているすべての MonoBehaviour にある methodName と名付けたメソッドを呼び出します |
| SetActive | Activates/Deactivates the GameObject, depending on the given true or false value. |
| CreatePrimitive | プリミティブメッシュレンダラーと適切なコライダーを作成します |
| Find | name で GameObject を検索し返します。 |
| FindGameObjectsWithTag | Returns an array of active GameObjects tagged tag. Returns empty array if no GameObject was found. |
| FindWithTag | /tag/でタグ付けされたアクティブなゲームオブジェクトを返します。もし見つからない場合は null を返します |
| hideFlags | Should the object be hidden, saved with the Scene or modifiable by the user? |
| name | オブジェクト名 |
| GetInstanceID | オブジェクトのインスタンス ID を返します |
| ToString | Returns the name of the object. |
| Destroy | Removes a GameObject, component or asset. |
| DestroyImmediate | Destroys the object obj immediately. You are strongly recommended to use Destroy instead. |
| DontDestroyOnLoad | Do not destroy the target Object when loading a new Scene. |
| FindObjectOfType | タイプ type から最初に見つけたアクティブのオブジェクトを返します |
| FindObjectsOfType | タイプから見つけたすべてのアクティブのオブジェクト配列を返します |
| Instantiate | original のオブジェクトをクローンします |
| bool | オブジェクトが存在するかどうか |
| operator != | 二つのオブジェクトが異なるオブジェクトを参照しているか比較します |
| operator == | 2つのオブジェクト参照が同じオブジェクトを参照しているか比較します。 |