File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -76,5 +76,6 @@ public class ConvertToPrefabSettingsSerialize : ExportOptionsSettingsSerializeBa
76
76
public override ExportSettings . LODExportType LODExportType { get { return ExportSettings . LODExportType . All ; } }
77
77
public override ExportSettings . ObjectPosition ObjectPosition { get { return ExportSettings . ObjectPosition . Reset ; } }
78
78
public override bool ExportUnrendered { get { return true ; } }
79
+ public override bool AllowSceneModification { get { return true ; } }
79
80
}
80
81
}
Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ public interface IExportOptions {
105
105
ExportSettings . ObjectPosition ObjectPosition { get ; }
106
106
bool AnimateSkinnedMesh { get ; }
107
107
bool UseMayaCompatibleNames { get ; }
108
+ bool AllowSceneModification { get ; }
108
109
bool ExportUnrendered { get ; }
109
110
Transform AnimationSource { get ; }
110
111
Transform AnimationDest { get ; }
@@ -145,6 +146,7 @@ public abstract class ExportOptionsSettingsSerializeBase : IExportOptions
145
146
public abstract ExportSettings . LODExportType LODExportType { get ; }
146
147
public abstract ExportSettings . ObjectPosition ObjectPosition { get ; }
147
148
public abstract bool ExportUnrendered { get ; }
149
+ public abstract bool AllowSceneModification { get ; }
148
150
}
149
151
150
152
[ System . Serializable ]
@@ -163,5 +165,6 @@ public class ExportModelSettingsSerialize : ExportOptionsSettingsSerializeBase
163
165
public void SetObjectPosition ( ExportSettings . ObjectPosition objPos ) { this . objectPosition = objPos ; }
164
166
public override bool ExportUnrendered { get { return exportUnrendered ; } }
165
167
public void SetExportUnredererd ( bool exportUnrendered ) { this . exportUnrendered = exportUnrendered ; }
168
+ public override bool AllowSceneModification { get { return false ; } }
166
169
}
167
170
}
Original file line number Diff line number Diff line change @@ -2212,6 +2212,10 @@ protected int ExportTransformHierarchy(
2212
2212
string fbxName = unityGo . name ;
2213
2213
if ( ExportOptions . UseMayaCompatibleNames ) {
2214
2214
fbxName = ConvertToMayaCompatibleName ( unityGo . name ) ;
2215
+ if ( ExportOptions . AllowSceneModification )
2216
+ {
2217
+ unityGo . name = fbxName ;
2218
+ }
2215
2219
}
2216
2220
2217
2221
// create an FbxNode and add it as a child of parent
You can’t perform that action at this time.
0 commit comments