Exemplo n.º 1
0
    void OnDestroy()
    {
        // check if fbx-wrapper is available
        if (!bFbxAvailable)
        {
            return;
        }

        // finish recording, if needed
        isRecording = false;

        // save the fbx file, if needed
        if (!SaveFileIfNeeded())
        {
            //Debug.LogError("Could not save the modified fbx to: " + saveFilePath);
        }

        // terminate the fbx wrapper
        if (bFbxInited)
        {
            MocapFbxWrapper.TermFbxFrapper();
            bFbxInited = false;
        }
    }