void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Plot2d)) { LogError("owner is not initialized. Add Action \"newPlot2d\"."); return; } OpenCVForUnity.PlotModule.Plot2d wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Plot2d, OpenCVForUnity.PlotModule.Plot2d>(owner); wrapped_owner.setPlotGridColor(new OpenCVForUnity.CoreModule.Scalar((double)_plotGridColor_v0.Value, (double)_plotGridColor_v1.Value, (double)_plotGridColor_v2.Value, (double)_plotGridColor_v3.Value)); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Plot2d)) { LogError("owner is not initialized. Add Action \"newPlot2d\"."); return; } OpenCVForUnity.PlotModule.Plot2d wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Plot2d, OpenCVForUnity.PlotModule.Plot2d>(owner); if (!(_plotGridColor.Value is OpenCVForUnityPlayMakerActions.Scalar)) { LogError("_plotGridColor is not initialized. Add Action \"newScalar\"."); return; } OpenCVForUnity.CoreModule.Scalar wrapped__plotGridColor = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Scalar, OpenCVForUnity.CoreModule.Scalar>(_plotGridColor); wrapped_owner.setPlotGridColor(wrapped__plotGridColor); }