Cross Platform Screen Recorder Kit
  • Introduction
  • Installation
  • Version 2 vs Version 1
  • Plugin Structure
    • Settings
    • Folder Paths
  • API
    • Create
    • Can Record (Service Availability)
    • Register Listeners
    • Is Recording
    • Is Paused or Recording
    • Prepare Recording
    • Start Recording
    • Stop Recording
    • Open Recording
    • Discard Recording
    • Save Recorded Video
    • Share Recorded Video
    • Flush
  • Limitations
    • Android
  • Misc
    • Using in Native Android Projects (UaaL)
  • Upgrades
    • 2.4.2
    • 2.4.1
    • 2.4.0
    • 2.3.1
    • 2.3.0
    • 2.2.0
    • 2.1.0
    • 2.0.0
    • 1.7.0
    • 1.6
    • 1.5
  • Release Notes
    • 2.4.2
    • 2.4.1
    • 2.4.0
    • 2.3.1
    • 2.3.0
    • 2.2.0
    • 2.1.0
    • 2.0.0
    • 1.7.0
    • 1.6
    • 1.5
    • 1.4
    • 1.3
    • 1.0
Powered by GitBook
On this page
  • Complete Setup
  • External Dependency Manager Setup (Optional)
  • File Setup : AndroidManifest.xml
  • File Setup : settings.gradle

Was this helpful?

  1. Misc

Using in Native Android Projects (UaaL)

Quick overview on how to use in native android projects with unity as a library (UaaL)

Complete Setup

  1. Open Unity Player Settings

  2. Go to Publishing Settings

  3. Enable Main Gradle Template

  4. Enable Main Android Manifest and open from Assets/Plugins/Android folder

  5. Add service tag (between existing <application> </application> tag as stated in File Setup : AndroidManifest.xml

  6. Open settings.gradle of your root native project and add lines fromFile Setup : settings.gradle at the end of the file after you include unityLibrary project directory.


External Dependency Manager Setup (Optional)

  1. Open Assets -> External Dependency Manager -> Android -> Settings

  2. Open Assets -> External Dependency Manager -> Android -> Force Resolve

File Setup : AndroidManifest.xml

<service android:name="com.voxelbusters.screenrecorderkit.videorecorder.internal.ScreenRecordingService" android:enabled="true" android:process=":UnityPlayer" android:foregroundServiceType="mediaProjection" />

Setting up the Android Manifest is a must as Unity runs in a different process (UnityPlayer) so for recording service to work we need to set this attribute

Note that the process name could be different for your project. You can get the value from the main launcher android manifest xml file. If you don't run unity in a separate process, you can just skip adding android:process attribute.

File Setup : settings.gradle

include 'unityLibrary:com.voxelbusters.screenrecorderkit.androidlib'

PreviousAndroidNext2.4.2

Last updated 1 year ago

Was this helpful?

After the above steps, follow on actions for Android Studio.

this document