Added Get/Set for entity name in .Net API

This commit is contained in:
Antoine Pilote
2024-08-15 19:08:50 -04:00
parent 711a9a9751
commit ead6ff6645
4 changed files with 70 additions and 13 deletions

View File

@@ -367,9 +367,7 @@ namespace Nuake
else
{
// In the case where the entity doesnt have an instance, we create one
auto newEntity = m_BaseEntityType.CreateInstance();
newEntity.SetPropertyValue("ECSHandle", scriptEntity.GetHandle());
newEntity.SetPropertyValue("ID", scriptEntity.GetID());
auto newEntity = m_BaseEntityType.CreateInstance(scriptEntity.GetHandle());
classInstance.SetFieldValue<Coral::ManagedObject>(exposedVarUserValue.Name, newEntity);
}
}