Hello, I’m trying to create a new substance and importing it in unity but I can’t succeed.
I created the Atropine.json and stored it in Data/substances, but when I try to call it from a script unity crashes.
What am I doing wrong?
The method I am using to call it from the script is the following
SESubstanceBolus bo = new SESubstanceBolus();
bo.SetSubstance(“Atropine”);
bo.GetConcentration().SetValue(50, MassPerVolumeUnit.mg_Per_mL);
bo.GetDose().SetValue(1, VolumeUnit.mL);
bo.SetAdminRoute(eSubstanceAdministration_Route.Intravenous);
driver.engine.ProcessAction(bo);
All other standard substances work while being called this way, only new .json can’t be opened.