void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.MatOfByte)) { LogError("owner is not initialized. Add Action \"newMatOfByte\"."); return; } OpenCVForUnity.CoreModule.MatOfByte wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfByte, OpenCVForUnity.CoreModule.MatOfByte>(owner); List <System.Byte> wrapped_storeResult = wrapped_owner.toList(); if (!storeResult.IsNone) { OpenCVForUnityPlayMakerActionsUtils.ConvertListToFsmArray <System.Byte, OpenCVForUnityPlayMakerActions.Byte>(wrapped_storeResult, storeResult); } }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.MatOfByte)) { LogError("owner is not initialized. Add Action \"newMatOfByte\"."); return; } OpenCVForUnity.CoreModule.MatOfByte wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfByte, OpenCVForUnity.CoreModule.MatOfByte>(owner); List <byte> wrapped_storeResult = wrapped_owner.toList(); 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, (int)wrapped_storeResult[i]); } storeResult.SaveChanges(); } }