お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseルートのTransformからターゲットのTransformまでの相対的なパスを取得します
rootのTransformからターゲットのTransformへの階層パスを表す文字列を返します。 rootは実際にルートのTransformである必要はなく、targetTransformよりも親であれば問題ありません。rootとtargetTransformは同じTransformでも問題ありません。