void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Net)) { LogError("owner is not initialized. Add Action \"newNet\"."); return; } OpenCVForUnity.DnnModule.Net wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Net, OpenCVForUnity.DnnModule.Net>(owner); string[] string_layersTypes = layersTypes.stringValues; List <string> wrapped_layersTypes = new List <string>(string_layersTypes); wrapped_owner.getLayerTypes(wrapped_layersTypes); for (int i = 0; i < wrapped_layersTypes.Count; i++) { layersTypes.Set(i, (string)wrapped_layersTypes[i]); } layersTypes.SaveChanges(); }