void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.DisposableOpenCVObject))
            {
                //                LogError ("owner is not initialized. Add Action \"newClassName\".");
                return;
            }
            OpenCVForUnityPlayMakerActions.DisposableOpenCVObject wrapper = owner.Value as OpenCVForUnityPlayMakerActions.DisposableOpenCVObject;
            OpenCVForUnity.DisposableOpenCVObject warapped = wrapper.wrappedObject as OpenCVForUnity.DisposableOpenCVObject;

            warapped.Dispose();
            wrapper.wrappedObject = null;

            Object.Destroy(owner.Value);
            owner.Value = null;
        }
Ejemplo n.º 2
0
 public DisposableOpenCVObject(OpenCVForUnity.DisposableOpenCVObject nativeObj)
     : base(nativeObj)
 {
 }