cleoag / Unity_Android_Screen_Recorder

A simpler demo record screen plugin for

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unity_Android_Screen_Recorder

How to use

  • You need to create a gameobject name 'AndroidUtils' and add 'AndroidUtils.cs' script to it.
  • When you want to start capturing your screen, call 'androidUtils.StartRecording()'. 'androidUtils' is a reference to AndroidUtils.cs instance.
  • When you want to stop capturing your screen, call 'androidUtils.StopRecording()'. 'androidUtils' is a reference to AndroidUtils.cs instance.

A simple demo of AndroidUtils Plugin which provide 3 main function

  • Record android screen.
  • Request runtime permissions like Audio..
  • Refresh android gallery so you capture file will show up on top.

It also contains 2 helper functions

  • NativeShare for native send or share a video, image or text via social network, sms and email.
  • ShowToast show android toast message.

Note that

  • You might need to adjust the 'SCREEN_WIDTH' constant in AndroidUtils.cs for best video resolution. If 'SCREEN_WIDTH' is too big, your app may crash.
  • The plugin only support api 21 and higher.

About

A simpler demo record screen plugin for

License:GNU General Public License v3.0


Languages

Language:C# 95.2%Language:ShaderLab 4.8%