med-material / Whack_A_Mole_VR

Whack-A-Mole in VR
MIT License
3 stars 15 forks source link

Updated Screenshots for README.md #193

Closed bastianilso closed 1 year ago

bastianilso commented 1 year ago

The current screenshots in README.md are quiet old. It would be good to make some updated screenshots, that shows properly how the game looks like now.

Steps:

To get nice screenshots with anti-aliasing, one can use Unity's ScreenCapture.CaptureScreenshot API, see script below.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class screenshot : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {
        if (Input.GetKey("up")) {
            ScreenCapture.CaptureScreenshot("Screenshot.png",1); 
            Debug.Log("Screenshot Captured");
        }
    }
}