@@ -100,13 +100,13 @@ public override void OnInspectorGUI ()
100
100
}
101
101
102
102
public interface IExportOptions {
103
- ExportSettings . ExportFormat ExportFormat { get ; set ; }
104
- ExportSettings . Include ModelAnimIncludeOption { get ; set ; }
105
- ExportSettings . LODExportType LODExportType { get ; set ; }
106
- ExportSettings . ObjectPosition ObjectPosition { get ; set ; }
107
- bool AnimateSkinnedMesh { get ; set ; }
108
- bool UseMayaCompatibleNames { get ; set ; }
109
- bool ExportUnrendered { get ; set ; }
103
+ ExportSettings . ExportFormat ExportFormat { get ; }
104
+ ExportSettings . Include ModelAnimIncludeOption { get ; }
105
+ ExportSettings . LODExportType LODExportType { get ; }
106
+ ExportSettings . ObjectPosition ObjectPosition { get ; }
107
+ bool AnimateSkinnedMesh { get ; }
108
+ bool UseMayaCompatibleNames { get ; }
109
+ bool ExportUnrendered { get ; }
110
110
}
111
111
112
112
public abstract class ExportOptionsSettingsBase < T > : ScriptableObject where T : ExportOptionsSettingsSerializeBase , new ( )
@@ -125,13 +125,16 @@ public abstract class ExportOptionsSettingsSerializeBase : IExportOptions
125
125
public bool animatedSkinnedMesh = true ;
126
126
public bool mayaCompatibleNaming = true ;
127
127
128
- public ExportSettings . ExportFormat ExportFormat { get { return exportFormat ; } set { exportFormat = value ; } }
129
- public bool AnimateSkinnedMesh { get { return animatedSkinnedMesh ; } set { animatedSkinnedMesh = value ; } }
130
- public bool UseMayaCompatibleNames { get { return mayaCompatibleNaming ; } set { mayaCompatibleNaming = value ; } }
131
- public abstract ExportSettings . Include ModelAnimIncludeOption { get ; set ; }
132
- public abstract ExportSettings . LODExportType LODExportType { get ; set ; }
133
- public abstract ExportSettings . ObjectPosition ObjectPosition { get ; set ; }
134
- public abstract bool ExportUnrendered { get ; set ; }
128
+ public ExportSettings . ExportFormat ExportFormat { get { return exportFormat ; } }
129
+ public void SetExportFormat ( ExportSettings . ExportFormat format ) { this . exportFormat = format ; }
130
+ public bool AnimateSkinnedMesh { get { return animatedSkinnedMesh ; } }
131
+ public void SetAnimatedSkinnedMesh ( bool animatedSkinnedMesh ) { this . animatedSkinnedMesh = animatedSkinnedMesh ; }
132
+ public bool UseMayaCompatibleNames { get { return mayaCompatibleNaming ; } }
133
+ public void SetUseMayaCompatibleNames ( bool useMayaCompNames ) { this . mayaCompatibleNaming = useMayaCompNames ; }
134
+ public abstract ExportSettings . Include ModelAnimIncludeOption { get ; }
135
+ public abstract ExportSettings . LODExportType LODExportType { get ; }
136
+ public abstract ExportSettings . ObjectPosition ObjectPosition { get ; }
137
+ public abstract bool ExportUnrendered { get ; }
135
138
}
136
139
137
140
[ System . Serializable ]
@@ -142,9 +145,13 @@ public class ExportModelSettingsSerialize : ExportOptionsSettingsSerializeBase
142
145
public ExportSettings . ObjectPosition objectPosition = ExportSettings . ObjectPosition . LocalCentered ;
143
146
public bool exportUnrendered = true ;
144
147
145
- public override ExportSettings . Include ModelAnimIncludeOption { get { return include ; } set { include = value ; } }
146
- public override ExportSettings . LODExportType LODExportType { get { return lodLevel ; } set { lodLevel = value ; } }
147
- public override ExportSettings . ObjectPosition ObjectPosition { get { return objectPosition ; } set { objectPosition = value ; } }
148
- public override bool ExportUnrendered { get { return exportUnrendered ; } set { exportUnrendered = value ; } }
148
+ public override ExportSettings . Include ModelAnimIncludeOption { get { return include ; } }
149
+ public void SetModelAnimIncludeOption ( ExportSettings . Include include ) { this . include = include ; }
150
+ public override ExportSettings . LODExportType LODExportType { get { return lodLevel ; } }
151
+ public void SetLODExportType ( ExportSettings . LODExportType lodLevel ) { this . lodLevel = lodLevel ; }
152
+ public override ExportSettings . ObjectPosition ObjectPosition { get { return objectPosition ; } }
153
+ public void SetObjectPosition ( ExportSettings . ObjectPosition objPos ) { this . objectPosition = objPos ; }
154
+ public override bool ExportUnrendered { get { return exportUnrendered ; } }
155
+ public void SetExportUnredererd ( bool exportUnrendered ) { this . exportUnrendered = exportUnrendered ; }
149
156
}
150
157
}
0 commit comments