Search Unity

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:
    18
    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