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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

AudioImporter.SetOverrideSampleSettings string parameter for "platform".

Discussion in 'Editor & General Support' started by pjohalloran, Dec 2, 2015.

  1. pjohalloran

    pjohalloran

    Joined:
    Jan 11, 2013
    Posts:
    19
    Hi,

    The importer functions such as:
    http://docs.unity3d.com/ScriptReference/AudioImporter.SetOverrideSampleSettings.html

    They take a string parameter for platform. However, the strings it takes is not fully documented. For example, what string do i pass for the RuntimePlatform.WindowsPlayer platform?

    As I mention it, how come it does not just take an enum like RuntimePlatform? Would remove the need for documentation and make it easier on devs also?

    Thanks,
    PJ
     
  2. pjohalloran

    pjohalloran

    Joined:
    Jan 11, 2013
    Posts:
    19
  3. pjohalloran

    pjohalloran

    Joined:
    Jan 11, 2013
    Posts:
    19
  4. pjohalloran

    pjohalloran

    Joined:
    Jan 11, 2013
    Posts:
    19
    @JoshPeterson would you be able to help me out on this please?
     
  5. pjohalloran

    pjohalloran

    Joined:
    Jan 11, 2013
    Posts:
    19
    Can anybody help me out here?
     
  6. pjohalloran

    pjohalloran

    Joined:
    Jan 11, 2013
    Posts:
    19
    Also setting the compression quality setting in TextureImporter.SetPlatformTextureSettings() does not do anything.
     
  7. pjohalloran

    pjohalloran

    Joined:
    Jan 11, 2013
    Posts:
    19