Пример #1
0
 /// <summary>
 /// Returns Samsung Provider Settings which are used by Adaptive Performance to apply Provider Settings.
 /// </summary>
 /// <returns>Samsung Provider Settings</returns>
 public static SimulatorProviderSettings GetSettings()
 {
     if (m_Settings == null)
     {
         SimulatorProviderSettings settings;
         EditorBuildSettings.TryGetConfigObject <SimulatorProviderSettings>(SimulatorProviderConstants.k_SettingsKey, out settings);
         // Create a copy, as we do not want to save the settings we apply during runtime to our settings in the Editor.
         m_Settings = ScriptableObject.CreateInstance <SimulatorProviderSettings>();
         EditorUtility.CopySerialized(settings, m_Settings);
     }
     return(m_Settings);
 }
Пример #2
0
 /// <summary>
 /// Implementation of <see cref="AdaptivePerformanceLoader.GetSettings"/>.
 /// </summary>
 /// <returns>Returns the Simulator settings.</returns>
 public override IAdaptivePerformanceSettings GetSettings()
 {
     return(SimulatorProviderSettings.GetSettings());
 }