@@ -103,13 +103,22 @@ namespace UnLua
103103 CPF_None,
104104 UECodeGen_Private::EPropertyGenFlags::Bool | UECodeGen_Private::EPropertyGenFlags::NativeBool,
105105 RF_Transient,
106+ #if UE_VERSION_OLDER_THAN(5, 3, 0)
106107 1 ,
108+ #endif
107109 nullptr ,
108110 nullptr ,
111+ #if UE_VERSION_NEWER_THAN(5, 2, 0)
112+ 1 ,
113+ #endif
109114 sizeof (bool ),
110115 sizeof (FPropertyCollector),
111116 nullptr ,
117+ #if UE_VERSION_NEWER_THAN(5, 2, 0)
118+ METADATA_PARAMS (0 , nullptr )
119+ #else
112120 METADATA_PARAMS (nullptr , 0 )
121+ #endif
113122 };
114123 const auto Property = new FBoolProperty (PropertyCollector, Params);
115124#endif
@@ -132,11 +141,20 @@ namespace UnLua
132141 CPF_HasGetValueTypeHash,
133142 UECodeGen_Private::EPropertyGenFlags::Int,
134143 RF_Transient,
144+ #if UE_VERSION_OLDER_THAN(5, 3, 0)
135145 1 ,
146+ #endif
136147 nullptr ,
137148 nullptr ,
149+ #if UE_VERSION_NEWER_THAN(5, 2, 0)
150+ 1 ,
151+ #endif
138152 0 ,
153+ #if UE_VERSION_NEWER_THAN(5, 2, 0)
154+ METADATA_PARAMS (0 , nullptr )
155+ #else
139156 METADATA_PARAMS (nullptr , 0 )
157+ #endif
140158 };
141159 const auto Property = new FIntProperty (PropertyCollector, Params);
142160#endif
@@ -159,11 +177,20 @@ namespace UnLua
159177 CPF_HasGetValueTypeHash,
160178 UECodeGen_Private::EPropertyGenFlags::Float,
161179 RF_Transient,
180+ #if UE_VERSION_OLDER_THAN(5, 3, 0)
162181 1 ,
182+ #endif
163183 nullptr ,
164184 nullptr ,
185+ #if UE_VERSION_NEWER_THAN(5, 2, 0)
186+ 1 ,
187+ #endif
165188 0 ,
189+ #if UE_VERSION_NEWER_THAN(5, 2, 0)
190+ METADATA_PARAMS (0 , nullptr )
191+ #else
166192 METADATA_PARAMS (nullptr , 0 )
193+ #endif
167194 };
168195 const auto Property = new FFloatProperty (PropertyCollector, Params);
169196#endif
@@ -186,11 +213,20 @@ namespace UnLua
186213 CPF_HasGetValueTypeHash,
187214 UECodeGen_Private::EPropertyGenFlags::Str,
188215 RF_Transient,
216+ #if UE_VERSION_OLDER_THAN(5, 3, 0)
189217 1 ,
218+ #endif
190219 nullptr ,
191220 nullptr ,
221+ #if UE_VERSION_NEWER_THAN(5, 2, 0)
222+ 1 ,
223+ #endif
192224 0 ,
225+ #if UE_VERSION_NEWER_THAN(5, 2, 0)
226+ METADATA_PARAMS (0 , nullptr )
227+ #else
193228 METADATA_PARAMS (nullptr , 0 )
229+ #endif
194230 };
195231 const auto Property = new FStrProperty (PropertyCollector, Params);
196232#endif
@@ -213,11 +249,20 @@ namespace UnLua
213249 CPF_HasGetValueTypeHash,
214250 UECodeGen_Private::EPropertyGenFlags::Name,
215251 RF_Transient,
252+ #if UE_VERSION_OLDER_THAN(5, 3, 0)
216253 1 ,
254+ #endif
217255 nullptr ,
218256 nullptr ,
257+ #if UE_VERSION_NEWER_THAN(5, 2, 0)
258+ 1 ,
259+ #endif
219260 0 ,
261+ #if UE_VERSION_NEWER_THAN(5, 2, 0)
262+ METADATA_PARAMS (0 , nullptr )
263+ #else
220264 METADATA_PARAMS (nullptr , 0 )
265+ #endif
221266 };
222267 const auto Property = new FNameProperty (PropertyCollector, Params);
223268#endif
@@ -240,13 +285,26 @@ namespace UnLua
240285 CPF_HasGetValueTypeHash,
241286 UECodeGen_Private::EPropertyGenFlags::Text,
242287 RF_Transient,
288+ #if UE_VERSION_OLDER_THAN(5, 3, 0)
243289 1 ,
290+ #endif
244291 nullptr ,
245292 nullptr ,
293+ #if UE_VERSION_NEWER_THAN(5, 2, 0)
294+ 1 ,
295+ #endif
246296 0 ,
297+ #if UE_VERSION_NEWER_THAN(5, 2, 0)
298+ METADATA_PARAMS (0 , nullptr )
299+ #else
247300 METADATA_PARAMS (nullptr , 0 )
301+ #endif
248302 };
303+ #if UE_VERSION_NEWER_THAN(5, 2, 0)
304+ const auto Property = new FTextProperty (PropertyCollector, " " , RF_Transient);
305+ #else
249306 const auto Property = new FTextProperty (PropertyCollector, Params);
307+ #endif
250308#endif
251309 TextProperty = TSharedPtr<ITypeInterface>(FPropertyDesc::Create (Property));
252310 }
@@ -271,12 +329,21 @@ namespace UnLua
271329 CPF_HasGetValueTypeHash,
272330 UECodeGen_Private::EPropertyGenFlags::Object,
273331 RF_Transient,
332+ #if UE_VERSION_OLDER_THAN(5, 3, 0)
274333 1 ,
334+ #endif
275335 nullptr ,
276336 nullptr ,
337+ #if UE_VERSION_NEWER_THAN(5, 2, 0)
338+ 1 ,
339+ #endif
277340 0 ,
278341 nullptr ,
342+ #if UE_VERSION_NEWER_THAN(5, 2, 0)
343+ METADATA_PARAMS (0 , nullptr )
344+ #else
279345 METADATA_PARAMS (nullptr , 0 )
346+ #endif
280347 };
281348 const auto ObjectProperty = new FObjectProperty (PropertyCollector, Params);
282349 ObjectProperty->PropertyClass = Class;
@@ -297,12 +364,21 @@ namespace UnLua
297364 : CPF_HasGetValueTypeHash,
298365 UECodeGen_Private::EPropertyGenFlags::Struct,
299366 RF_Transient,
367+ #if UE_VERSION_OLDER_THAN(5, 3, 0)
300368 1 ,
369+ #endif
301370 nullptr ,
302371 nullptr ,
372+ #if UE_VERSION_NEWER_THAN(5, 2, 0)
373+ 1 ,
374+ #endif
303375 0 ,
304376 nullptr ,
377+ #if UE_VERSION_NEWER_THAN(5, 2, 0)
378+ METADATA_PARAMS (0 , nullptr )
379+ #else
305380 METADATA_PARAMS (nullptr , 0 )
381+ #endif
306382 };
307383 const auto StructProperty = new FStructProperty (PropertyCollector, Params);
308384 StructProperty->Struct = ScriptStruct;
0 commit comments