Jump to content

Sectr Audio broken


Wavyeye

Recommended Posts

In a new empty URP core project on LTS, import Sectr, open the Audio window click on a clip and over 300 errors

 

Unknown platform passed to AudioImporter.ContainsSampleSettingsOverride (Unknown)
UnityEditor.AudioImporter:ContainsSampleSettingsOverride (string)
SECTR_AudioWindow:GetPreloadAudioDataSetting (UnityEditor.AudioImporter) (at Assets/Procedural Worlds/SECTR/Scripts/Editor/Audio/SECTR_AudioWindow.cs:1260)
SECTR_AudioWindow:_DrawClipList () (at Assets/Procedural Worlds/SECTR/Scripts/Editor/Audio/SECTR_AudioWindow.cs:1121)
SECTR_AudioWindow:OnGUI () (at Assets/Procedural Worlds/SECTR/Scripts/Editor/Audio/SECTR_AudioWindow.cs:437)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
 

Link to comment
Share on other sites

Hi @Wavyeye which exact unity version are you using? I just tried to reproduce the issue in 2022.3.15 and did not get this error when opening the Audio window and clicking on the clips in there.
When googling this error message, I found that this seems to be a generic problem with Unity and Audio files, there are various posts about this issue where Sectr is not involved, e.g.:

https://forum.unity.com/threads/strange-sound-error-on-import.950221/
https://stackoverflow.com/questions/64248594/error-comes-when-importing-a-audio-file-to-unity-2020-1

When you browse through the clips in Procedural Worlds > SECTR > Demos > Assets, are you able to see and play back the clips in the inspector? 

Link to comment
Share on other sites

  • 2 weeks later...

Hi @Wavyeye,

I did test it under 2022.3.20 again and was able to reproduce the issue. I cannot 100% tell what is going on, it seems this is a bug / oversight in the newer Unity LTS releases where the API for the Audio Importer does not recognize the Editor itself as a valid platform anymore. 
Luckily there is an alternative way to get the Sample Settings Override by build target group, this does not produce the same error for me. I created a hotfix for this issue which you can download here:


SECTRAudioWindowPlatformFix.zip

You can install the contained unitypackage via Assets > Import Package > Custom Package in the Unity Editor. Could you please let me know if the fix works for you, this would then become part of the next sectr update then.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Tell a friend

    Love Canopy - Procedural Worlds? Tell a friend!
  • Need help?

    We work with some of the biggest brands in global gaming, automotive, technology, and government to create environments, games, simulations, and product launches for desktop, mobile, and VR.

    Our unique expertise and technology enable us to deliver solutions that look and run better at a fraction of the time and cost of a typical project.

    Check out some of our non-NDA work in the Gallery, and then Contact Us to accelerate your next project!

×
×
  • Create New...