api.natsuite.ncpx

Performance extensions for video recording in Unity Engine.

Usage no npm install needed!

<script type="module">
  import apiNatsuiteNcpx from 'https://cdn.skypack.dev/api.natsuite.ncpx';
</script>

README

NatCorder Performance Extensions

Performance extensions for video recording in Unity Engine.

Setup Instructions

To install the library, add the following to your project's manifest.json file in the Packages folder:

{
  "scopedRegistries": [
    {
      "name": "NatML",
      "url": "https://registry.npmjs.com",
      "scopes": ["api.natsuite"]
    }
  ],
  "dependencies": {
    "api.natsuite.ncpx": "0.0.3"
  }
}

High Performance Recording

NCPX provides highly optimized recorder inputs that offer inexpensive pixel buffer readbacks from Texture objects, and simultaneously offer multithreaded recording.

They can be used independently, or attached to a CameraInput when recording game cameras:

// Create recorder and recording clock
var recorder = ...;
var clock = ...;
// Create a camera input
var cameraInput = new CameraInput(recorder, clock, cameras);
// Attach optimized texture input from NCPX to the camera input
cameraInput.textureInput = new GLESTextureInput(recorder, multithreading: true);

NCPX provides GLESTextureInput for OpenGL ES3 on Android.

Watermark Recording

INCOMPLETE

Cropped Recording

INCOMPLETE

Recording to a Specific File

INCOMPLETE


Requirements

  • Unity 2019.2+
  • NatCorder 1.8.0+

Resources

Thank you very much!