File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -2176,6 +2176,25 @@ protected int ExportTransformHierarchy(
2176
2176
return numObjectsExported ;
2177
2177
}
2178
2178
2179
+ protected bool ExportAnimationOnly ( GameObject unityGo , FbxScene fbxScene , FbxNode fbxNodeParent ) {
2180
+ // gather all animation clips
2181
+ var legacyAnim = unityGo . GetComponentsInChildren < Animation > ( ) ;
2182
+ var genericAnim = unityGo . GetComponentsInChildren < Animator > ( ) ;
2183
+
2184
+ foreach ( var anim in legacyAnim ) {
2185
+ var animClip = anim . clip ;
2186
+ foreach ( EditorCurveBinding uniCurveBinding in AnimationUtility . GetCurveBindings ( animClip ) ) {
2187
+ Object uniObj = AnimationUtility . GetAnimatedObject ( anim . gameObject , uniCurveBinding ) ;
2188
+ if ( ! uniObj ) {
2189
+ continue ;
2190
+ }
2191
+ Debug . LogWarning ( uniObj . name + ": " + uniCurveBinding . propertyName ) ;
2192
+ }
2193
+ }
2194
+
2195
+ return false ;
2196
+ }
2197
+
2179
2198
/// <summary>
2180
2199
/// Export components on this game object.
2181
2200
/// Transform components have already been exported.
You can’t perform that action at this time.
0 commit comments