Skip to content

Commit 61f61e5

Browse files
authored
Ut 3769 change Recorder to optional dependency + min Unity version 2019.4 (#548)
* make the recorder an optional dependency * Update minimum supported Unity version to 2019.4. * update recorder doc * code review fix - update doc link
1 parent f6c2ae4 commit 61f61e5

File tree

10 files changed

+27
-17
lines changed

10 files changed

+27
-17
lines changed

.yamato/promotion.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# tests.
77
#
88
test_editors:
9-
- version: 2019.3
9+
- version: 2019.4
1010
test_platforms:
1111
- name: win
1212
type: Unity::VM

.yamato/upm-ci.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
test_trigger_editors:
2-
- version: 2018.4
32
- version: 2019.4
3+
- version: 2020.1
44
publish_trigger_editors:
5-
- version: 2018.4
6-
- version: 2019.1
7-
- version: 2019.2
8-
- version: 2019.3
95
- version: 2019.4
106
- version: 2020.1
117
platforms:

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
- There may be discrepancies in the Aim constraint and Parent constraint export result compared to before, however these should still import correctly into Autodesk® Maya® and other DCCs.
1818
- Export animation curve tangents instead of baking animation.
1919
- For more details see https://docs.unity3d.com/Packages/[email protected]/manual/exporting.html#animation
20+
- Change dependency on Unity Recorder to an optional one so it is no longer immediately installed when installing the FBX exporter package.
21+
- Update minimum supported Unity version to 2019.4.
2022

2123
### Fixed
2224
- Fix Export Model and Convert to Prefab Variant setting presets not serializing settings properly.

com.unity.formats.fbx/Documentation~/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The FBX Exporter package includes the following features:
1414

1515
The FBX Exporter package is compatible with the following versions of the Unity Editor:
1616

17-
* 2018.3 and later
17+
* 2019.4 and later
1818

1919
The Unity Integration for Autodesk® Maya® and Autodesk® Maya LT™ feature supports the following versions:
2020

com.unity.formats.fbx/Documentation~/recorder.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# FBX Recorder
22

3-
With the FBX Exporter and the [Unity Recorder](https://docs.unity3d.com/Packages/com.unity.recorder@2.1/index.html), it is possible to export animations (including [Cinemachine](https://docs.unity3d.com/Packages/[email protected]/manual/index.html) camera animations) directly to FBX in a few easy steps:
3+
With the FBX Exporter and the [Unity Recorder](https://docs.unity3d.com/Packages/com.unity.recorder@2.2/index.html), it is possible to export animations (including [Cinemachine](https://docs.unity3d.com/Packages/[email protected]/manual/index.html) camera animations) directly to FBX in a few easy steps:
44

5-
1. Open the Recorder window by selecting (Window > General > Recorder > Recorder Window)
6-
2. In the Recorder window add a new FBX recorder
5+
1. Install the Unity Recorder package from the [Package Manager](https://docs.unity3d.com/Manual/upm-ui-install.html) if it is not already in the project
6+
2. Open the Recorder window by selecting (Window > General > Recorder > Recorder Window)
7+
3. In the Recorder window add a new FBX recorder
78

89
![](images/FBXExporter_AddRecorder.png)
910

com.unity.formats.fbx/Editor/Sources/Recorders/FbxRecorder/FbxRecorder.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Collections;
1+
#if ENABLE_FBX_RECORDER
2+
using System.Collections;
23
using System.Collections.Generic;
34
using UnityEngine;
45
using UnityEditor.Recorder;
@@ -72,3 +73,4 @@ protected override void EndRecording(RecordingSession session)
7273
}
7374
}
7475
}
76+
#endif // ENABLE_FBX_RECORDER

com.unity.formats.fbx/Editor/Sources/Recorders/FbxRecorder/FbxRecorderSettings.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System;
1+
#if ENABLE_FBX_RECORDER
2+
using System;
23
using System.Collections.Generic;
34
using UnityEngine;
45
using UnityEditor.Recorder;
@@ -279,4 +280,5 @@ protected override string Extension
279280
get { return "fbx"; }
280281
}
281282
}
282-
}
283+
}
284+
#endif // ENABLE_FBX_RECORDER

com.unity.formats.fbx/Editor/Sources/Recorders/FbxRecorder/FbxRecorderSettingsEditor.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Collections;
1+
#if ENABLE_FBX_RECORDER
2+
using System.Collections;
23
using System.Collections.Generic;
34
using UnityEngine;
45
using UnityEditor.Recorder;
@@ -36,3 +37,4 @@ protected override void OnEncodingGui()
3637
}
3738
}
3839
}
40+
#endif // ENABLE_FBX_RECORDER

com.unity.formats.fbx/Editor/Unity.Formats.Fbx.Editor.asmdef

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
"precompiledReferences": [],
1818
"autoReferenced": true,
1919
"defineConstraints": [],
20-
"versionDefines": [],
20+
"versionDefines": [
21+
{
22+
"name": "com.unity.recorder",
23+
"expression": "2.2.0-preview.4",
24+
"define": "ENABLE_FBX_RECORDER"
25+
}
26+
],
2127
"noEngineReferences": false
2228
}

com.unity.formats.fbx/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
"displayName": "FBX Exporter",
44
"version": "4.0.0-pre.1",
55
"dependencies": {
6-
"com.unity.recorder": "2.2.0-preview.4",
76
"com.unity.timeline": "1.0.0",
87
"com.autodesk.fbx": "4.0.0-pre.1"
98
},
10-
"unity": "2018.4",
9+
"unity": "2019.4",
1110
"unityRelease": "0f1",
1211
"description": "The Unity FBX Exporter package makes it easy to send geometry and animation to any application that supports FBX and back again with minimal effort.\n\nIn particular, this round-trip workflow enables you to export Unity scenes to FBX, import into Maya, Maya LT, or 3ds Max using an artist-friendly interface, export Unity-ready FBX geometry and animation, and safely merge your changes back into those Assets to continue your work.\n\nFor more information, see the FBX Exporter package documentation.",
1312
"keywords": [

0 commit comments

Comments
 (0)