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); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.Layer)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.Layer(); } ((OpenCVForUnityPlayMakerActions.Layer)storeResult.Value).wrappedObject = wrapped_owner.getLayer(layerId.Value); }