コード例 #1
0
 private void OnDrawGizmos()
 {
     Transform[] children = PPPUtil.GetAllChildren(transform);
     for (int i = 0; i < children.Length - 1; i++)
     {
         Gizmos.color = new Color(0f, 255f, 0f);
         Gizmos.DrawLine(children[i].position, children[i + 1].position);
     }
 }
コード例 #2
0
ファイル: TPath.cs プロジェクト: paternostrox/VRTK
    public Transform[] path; // Real path

    public void UpdatePath()
    {
        path = PPPUtil.GetAllChildren(transform);
    }