Finds object with the given in relation to the provided gameObject .
The provided including value determines what GameObjects related to the provided gameObject are included in the search.
- Parameters
-
| gameObject | The GameObject to search. |
| id | The identifier of the object to find. |
| result | When this method returns, contains object of type T , if found; otherwise, null. This parameter is passed uninitialized. |
| including | determines what GameObjects related to the provided gameObject are included in the search. |
- Returns
true if object of the given type was found; otherwise, false.
- Template Parameters
-
| T | Type of the object to find. |
- Returns