ShanxiKnowledgeBase/SXElectricity Marketing 2.0/Assets/LG-Utility/Screen/Shoot/Scripts/DemoScript.cs

22 lines
484 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DemoScript : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
private void OnGUI()
{
if (GUILayout.Button("½ØÍ¼"))
{
LG_Utility.Screen.ScreenShoot.Shoot("d:\\test3.jpg");
LG_Utility.Screen.ScreenShoot.Shoot(Camera.main, new Rect(0, 0, 1920, 1024), "d:\\test4.jpg");
}
}
}