CraftAR Unity Pro SDK  1.0
Public Member Functions | List of all members
CraftARSDK.CraftARFrameDrawer Interface Reference

The CraftARFrameDrawer interface offers callbacks to override the default camera preview. More...

Public Member Functions

void textureReady (Texture2D cameraTexture)
 Called when the texture used to draw the preview is ready. Use this texture to draw your modified frame. The texture has been initialized using the current VideoFrameSettings.

See also
CraftARSDK.GetVideoFrameSettings()
More...
 
void newFrame (byte[] frameBytes, int frameWidth, int frameHeight)
 Called when a new frame is received from the camera capture. More...
 

Detailed Description

The CraftARFrameDrawer interface offers callbacks to override the default camera preview.

Member Function Documentation

◆ newFrame()

void CraftARSDK.CraftARFrameDrawer.newFrame ( byte []  frameBytes,
int  frameWidth,
int  frameHeight 
)

Called when a new frame is received from the camera capture.

Parameters
framBytesFrame Bytes.
frameWidthFrame width.
frameHeightFrame height.

◆ textureReady()

void CraftARSDK.CraftARFrameDrawer.textureReady ( Texture2D  cameraTexture)

Called when the texture used to draw the preview is ready. Use this texture to draw your modified frame. The texture has been initialized using the current VideoFrameSettings.

See also
CraftARSDK.GetVideoFrameSettings()

Parameters
cameraTextureCamera texture.

The documentation for this interface was generated from the following file: