Hello,
I am creating my own Cubism DIY Viewer using the following guide.
https://docs.live2d.com/en/cubism-sdk-tutorials/use-cubismdiyviewer/I want to add a button that when clicked saves an image of the face of vtuber model at the current time.
What would be the best way of accomplishing this?
I am using Unity SDK version 4-r.7 and Unity 2022.3.11f1
I am a complete beginner to Unity and C#.
Comments
I am also beginner for Unity. But, I can find the article for capture screenshot.
https://vanikki.com/unity-screenshot/
Attach this script to the button.
using UnityEngine; public class ScreenShot : MonoBehaviour { public void CameraButton() { ScreenCapture.CaptureScreenshot("test.png"); } }Best regards.