Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Export screen recording + screenshots at runtime

Discussion in 'Animation' started by patmw, Oct 7, 2021.

  1. patmw

    patmw

    Joined:
    Oct 1, 2019
    Posts:
    6
    Hi there,

    I'm building a desktop (PC/Mac) application which generates visual art at runtime using a compute shader.
    My goal is to export screenshots and 5 minute segments of video, at runtime, every __ minutes to capture how the simulation evolves over time.

    Does anyone have any idea how I could achieve this?

    I looked into options and the only thing I found information on was the unity recorder
    https://docs.unity3d.com/Manual/com.unity.recorder.html

    However, it looks like you can only do this in the unity editor and not on application builds.

    Any help is massively appreciated!
    Cheers
     
  2. vladala

    vladala

    Unity Technologies

    Joined:
    Mar 3, 2017
    Posts:
    189
    Hey,
    Unfortunately, the recorder is does not run at runtime.
    You could maybe use:
    ScreenCapture.CaptureScreenshot