Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Is it possible to change Recorder type via script?

Discussion in 'Audio & Video' started by unity_13655ADA027154E50D6A, Dec 4, 2022.

  1. unity_13655ADA027154E50D6A

    unity_13655ADA027154E50D6A

    Joined:
    Nov 15, 2022
    Posts:
    14
    Basically I am trying to turn on "Movie" on Recorder but via script. I've found solutions to get the recorder window, but cannot get the MovieRecorderSettings from this class. So I was wondering how do I approach this problem?

    I am trying to do this :



    Turn this on from here :
     

    Attached Files:

  2. JunL_Unity

    JunL_Unity

    Unity Technologies

    Joined:
    May 28, 2020
    Posts:
    17
    Hi there! To get the list of all recorder settings in the recorder window, you can get that by calling
    RecorderControllerSettings.GetGlobalSettings().RecorderSettings;
    From there you can retrieve your recorder settings of choice and then use
    MyMovieRecorderSetting.Enable = true
    to enable it.

    Note! If you want to record, you still need to start the recording separately.
     
  3. unity_13655ADA027154E50D6A

    unity_13655ADA027154E50D6A

    Joined:
    Nov 15, 2022
    Posts:
    14