@@ -2445,8 +2445,8 @@ bool ClientSDKUnity::writeEntityProperty_DOUBLE(ScriptDefModule* pEntityScriptDe
2445
2445
bool ClientSDKUnity::writeEntityProperty_STRING (ScriptDefModule* pEntityScriptDefModule,
2446
2446
ScriptDefModule* pCurrScriptDefModule, PropertyDescription* pPropertyDescription)
2447
2447
{
2448
- sourcefileBody_ += fmt::format (" \t\t public string {} = {} ;\n " , pPropertyDescription->getName (),
2449
- (strlen (pPropertyDescription->getDefaultValStr ()) > 0 ? pPropertyDescription->getDefaultValStr () : " \"\" " ));
2448
+ sourcefileBody_ += fmt::format (" \t\t public string {} = \" {} \" ;\n " , pPropertyDescription->getName (),
2449
+ (strlen (pPropertyDescription->getDefaultValStr ()) > 0 ? pPropertyDescription->getDefaultValStr () : " " ));
2450
2450
2451
2451
std::string name = pPropertyDescription->getName ();
2452
2452
name[0 ] = std::toupper (name[0 ]);
@@ -2458,8 +2458,8 @@ bool ClientSDKUnity::writeEntityProperty_STRING(ScriptDefModule* pEntityScriptDe
2458
2458
bool ClientSDKUnity::writeEntityProperty_UNICODE (ScriptDefModule* pEntityScriptDefModule,
2459
2459
ScriptDefModule* pCurrScriptDefModule, PropertyDescription* pPropertyDescription)
2460
2460
{
2461
- sourcefileBody_ += fmt::format (" \t\t public string {} = {} ;\n " , pPropertyDescription->getName (),
2462
- (strlen (pPropertyDescription->getDefaultValStr ()) > 0 ? pPropertyDescription->getDefaultValStr () : " \"\" " ));
2461
+ sourcefileBody_ += fmt::format (" \t\t public string {} = \" {} \" ;\n " , pPropertyDescription->getName (),
2462
+ (strlen (pPropertyDescription->getDefaultValStr ()) > 0 ? pPropertyDescription->getDefaultValStr () : " " ));
2463
2463
2464
2464
std::string name = pPropertyDescription->getName ();
2465
2465
name[0 ] = std::toupper (name[0 ]);
0 commit comments