概要
using System.Diagnostics; using UnityEngine; public class Example : MonoBehaviour { private void Awake() { SetNoBackupFlag( Application.persistentDataPath ); } [Conditional( "UNITY_IOS" )] private static void SetNoBackupFlag( string path ) { #if !UNITY_EDITOR && UNITY_IOS UnityEngine.iOS.Device.SetNoBackupFlag( path ); #endif } }
UnityEngine.iOS.Device.SetNoBackupFlag を使用する