言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

AnimationUtility.CalculateTransformPath

public static function CalculateTransformPath(targetTransform: Transform, root: Transform): string;

Description

ルートのTransformからターゲットのTransformまでの相対的なパスを取得します

rootのTransformからターゲットのTransformへの階層パスを表す文字列を返します。 rootは実際にルートのTransformである必要はなく、targetTransformよりも親であれば問題ありません。rootとtargetTransformは同じTransformでも問題ありません。