AnimationUtility.CalculateTransformPath 计算变换路径

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

Description描述

Calculates path from root transform to target transform.

计算从初始transform到目标transform的路径

Returns a string representing the path in a transform hierarchy from a given root transform down to a given target transform. The root transform does not need to be an actual root, but it must be higher in the hierarchy than the target transform. The target and root may also be the same transform.

返回一个代表路径的字符串,在一个transform层次结构中从一个给定的根transform到给定的目标transform.根transform并不需要是一个实际的根,但是它必须在层次关系中高于目标transform.目标和根也可能是相同的transform.

Page last updated: 2011-1-7