Hi,
I contact you because I try to activate from a script the IOS playerSettings “Prepare iOS for recording” and “Force iOS Speakers when recording”. However they are not available and I don’t know why. Would you have an idea where I can find them?
hi, did you find the solution, I’m looking to do the same through the script.
Hi, sorry I didn’t find a solution
SerializedObject projectSettings = new(AssetDatabase.LoadAssetAtPath<UnityEngine.Object>("ProjectSettings/ProjectSettings.asset")); var PrepareIOSForRecording = projectSettings?.FindProperty("Prepare IOS For Recording"); var ForceIOSSpeakersWhenRecording = projectSettings?.FindProperty("Force IOS Speakers When Recording"); if (PrepareIOSForRecording != null) { PrepareIOSForRecording.boolValue = true; } if (ForceIOSSpeakersWhenRecording != null) { ForceIOSSpeakersWhenRecording.boolValue = true; } projectSettings?.ApplyModifiedProperties();