Make object created on native side move together with the scene

Looking for some guidance in the following:

I am creating an object via native side (obj-c) and showing it on screen.  On an ideal world, I would like to make that object to behave like a display object, so I could add it to the sceneGroup of my current scene.

So, here are my questions:

  1. Is it possible to make the object that I created behave like a display object? 

  2. If not possible, what would be the best way to make that object to move together with the sceneGroup (specially during the show/hide transitions)?   

PS: One idea for #2 above would be to create a “moveTo(x,y)” function that would move my object and then execute that function on every frame during the between the “will” and “did” phases of my show/hide scene functions. I would like to know if there is better way than doing this.

Look at this blog post:

https://coronalabs.com/blog/2016/09/22/introducing-external-bitmap-textures/

We have a new Enterprise object called an external texture which allows you to use native code to manipulate it and return it to Corona as a texture object. Then you could use a texture object as the source for a display object.

Rob

Thanks for the reply @Rob.  On my case, the object that I create and show on the screen is a camera preview layer (AVCaptureVideoPreviewLayer) and it appears that the bitmap textures works best for static images, correct?

Look at this blog post:

https://coronalabs.com/blog/2016/09/22/introducing-external-bitmap-textures/

We have a new Enterprise object called an external texture which allows you to use native code to manipulate it and return it to Corona as a texture object. Then you could use a texture object as the source for a display object.

Rob

Thanks for the reply @Rob.  On my case, the object that I create and show on the screen is a camera preview layer (AVCaptureVideoPreviewLayer) and it appears that the bitmap textures works best for static images, correct?