Search Unity

Record only last seconds.

Discussion in 'Unity Everyplay' started by Deleted User, Nov 12, 2015.

  1. Deleted User

    Deleted User

    Guest

    I'm developing an endless racing game, and I wonder if it is possible to save only the last 10 seconds by exermplo the game.

    The recording would begin to play with a maximum limit of frames (eg 300 frames = 10 seconds at 30fps) and all frames created before that were deleted at the time of compression.

    Sorry for my English, I'm from Brazil.
     
  2. pmjo

    pmjo

    Unity Technologies

    Joined:
    Sep 17, 2013
    Posts:
    245
    There is a method called SetMaxRecordingMinutesLength which allows you to trim out everything else than x minutes of the video end. The parameter is integer so the minimum time will be 1 minute.

    Code (CSharp):
    1. Everyplay.SetMaxRecordingMinutesLength(1);
     
  3. Deleted User

    Deleted User

    Guest

    CONVERTER IS POSSIBLE THAT NUMBER FOR A FULL FLOAT NUMBER?
     
  4. pmjo

    pmjo

    Unity Technologies

    Joined:
    Sep 17, 2013
    Posts:
    245
    No.