GameObject.GetComponent
GameObject
https://docs.unity3d.com/ja/2019.4/ScriptReference/GameObject.GetComponent.html
public Component GetComponent (Type type)
ゲームオブジェクトに type がアタッチされている場合は type のタイプを使用してコンポーネントを返します。ない場合は null です
https://docs.unity3d.com/Manual/class-GameObject.html Accessing componentsセクションに詳しい解説がある
from VRMで読み込んだキャラクターをpassthroughで出すアプリを作る
code:c#
// Assigns the player ball's rigidbody instance to the variable
rb = GetComponent<Rigidbody>();
https://gyazo.com/64aef9869475bcf880b085a3bddac986
今回の場合はこのRigidbody componentを取得している