void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Boost)) { LogError("owner is not initialized. Add Action \"newBoost\"."); return; } OpenCVForUnity.MlModule.Boost wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Boost, OpenCVForUnity.MlModule.Boost>(owner); wrapped_owner.setWeightTrimRate((float)val.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Boost)) { LogError("owner is not initialized. Add Action \"newBoost\"."); return; } OpenCVForUnity.MlModule.Boost wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Boost, OpenCVForUnity.MlModule.Boost>(owner); if (!(val.Value is OpenCVForUnityPlayMakerActions.Double)) { LogError("val is not initialized. Add Action \"newDouble\"."); return; } System.Double wrapped_val = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Double, System.Double>(val); wrapped_owner.setWeightTrimRate(wrapped_val); }