Version: 2020.3
言語: 日本語
public static string CalculateTransformPath (Transform targetTransform, Transform root);

戻り値

string Returns a string representing the path in the transform hierarchy.

説明

Retrieves the path from the root transform to the target transform.

Root Transform は、実際のルート(root)である必要はありませんが、ターゲットの Transform より階層(hierarchy)上で上位にしなければなりません。ターゲットとルートも同じ Transform でも問題ありません。


Did you find this page useful? Please give it a rating: