示例#1
0
    // Use this for initialization
    void SettingRecordItems()
    {
        // get all record objs
        observeObjs = gameObject.GetComponentsInChildren <Transform> ();
        objAnims    = new ObjAnimationContainer[observeObjs.Length];

        objNums = objAnims.Length;

        for (int i = 0; i < observeObjs.Length; i++)
        {
            string namePath = AnimationRecorderHelper.GetTransformPathName(transform, observeObjs [i]);
            objAnims[i] = new ObjAnimationContainer(observeObjs[i], namePath, saveFolderPath, true, true, true);
        }

        ShowLog("Setting complete");
    }
    // Use this for initialization
    void SettingRecordItems()
    {
        // get all record objs
        observeObjs = gameObject.GetComponentsInChildren <Transform> ();
        objAnims    = new ObjAnimationContainer[observeObjs.Length];

        objNums = objAnims.Length;

        for (int i = 0; i < observeObjs.Length; i++)
        {
            string namePath = observeObjs [i].name;

            // if there are some nodes with same names, include path
            if (includePathName)
            {
                namePath = AnimationRecorderHelper.GetTransformPathName(transform, observeObjs [i]);
                Debug.Log("get name: " + namePath);
            }
            objAnims[i] = new ObjAnimationContainer(observeObjs[i], namePath, saveFolderPath, true, true, true);
        }

        ShowLog("Setting complete");
    }