GameObject-TryGetComponent - Unity スクリプトリファレンス

Gets the component of the specified type, if it exists.