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); List <string> wrapped_storeResult = wrapped_owner.getLayerNames(); if (!storeResult.IsNone) { if (storeResult.Length != wrapped_storeResult.Count) { storeResult.Resize(wrapped_storeResult.Count); } for (int i = 0; i < wrapped_storeResult.Count; i++) { storeResult.Set(i, (string)wrapped_storeResult[i]); } storeResult.SaveChanges(); } }