You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
634 B
C#
21 lines
634 B
C#
1 month ago
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
using SaadKhawaja.InstantScreenshot;
|
||
|
|
||
|
public class Screenshot_Demo : MonoBehaviour
|
||
|
{
|
||
|
public void TakeScreenshotExample()
|
||
|
{
|
||
|
InstantScreenshot.TakeScreenshot(Application.dataPath, "Test.png", isTransparent: true);
|
||
|
|
||
|
//Take screenshot with more options
|
||
|
//InstantScreenshot.TakeScreenshot(Application.dataPath, "Test.png", Camera.main, 1920, 1080, 1, false);
|
||
|
|
||
|
//Take Screenshot at a 3x resolution
|
||
|
//InstantScreenshot.TakeScreenshot(Application.dataPath, "Test.png", Camera.main, 1920, 1080, 3, false);
|
||
|
|
||
|
|
||
|
}
|
||
|
}
|