class ARSessionCameraFeedExtension (Niantic.ARDK.AR.ARSessionCameraFeedExtension)
Overview
class ARSessionCameraFeedExtension { public: // methods static ARCameraFeed GetCameraFeed( this IARSession arSession, ARCameraFeed.CameraFeedResolution resolution, ARCameraFeed.TextureType textureType = ARCameraFeed.TextureType.Platform ); };
Detailed Documentation
Methods
static ARCameraFeed GetCameraFeed( this IARSession arSession, ARCameraFeed.CameraFeedResolution resolution, ARCameraFeed.TextureType textureType = ARCameraFeed.TextureType.Platform )
Creates or gets an ARCameraFeed that outputs textures using the given ARSession’s frame updates. Not all ARSessions need to have an ARCameraFeed; only get one if you need the output textures.
Note
Only a single ARCameraFeed instance will ever be created for each ARSession. This means that if you call this method multiple times for the same session, the returned ARCameraFeed will always have the original resolution and textureType.
Parameters:
arSession |
The ARSession to get the feed for. |
resolution |
The resolution info of the ARCameraFeed. |
Returns:
An ARCameraFeed for the given ARSession.