Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by tvledesign · May 19, 2016 at 08:55 PM · audionormalize

How do you edit the Normalize toggle field on Audio Clip by script?

I've been digging around for quite a bit but I'm not quite sure how this can be done. I am able to change the following toggle fields by script:

alt text

  • Force To Mono

  • Load In Background

  • Preload Audio Data

But I can't figure out how to get the "Normalize" toggle to change via script. Does anyone know how to do this or can anyone point me in the right direction?

Thanks in advance, Tony ~

untitled-2.png (11.6 kB)
Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Fixe · Jan 25, 2017 at 03:21 PM 0
Share

I'm still waiting for an answer. Have you been successfull?

1 Reply

· Add your reply
  • Sort: 
avatar image
-1

Answer by FortisVenaliter · May 19, 2016 at 09:52 PM

If I recall correctly, those options affect how the clip is imported into Unity. So, by the time you reference the clip in code, those options aren't available because the clip is already fully imported.

Maybe if you explain a bit more about why you need to access those in code instead of the import inspector, we could offer better advice?

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image tvledesign · May 19, 2016 at 11:04 PM 0
Share

Ah I see. That would make sense. Pretty much what I'm trying to do is, I have an asset I'm working on and a part of the feature is being able to change the audio import settings on each clip all within one window. I got it working for all of the other options except for normalize and sample rate (Hz). But based on what you mentioned above it doesn't seem like I'd be able to really mess with these two options at all.

avatar image FortisVenaliter tvledesign · May 20, 2016 at 02:02 PM 0
Share

Now, I don't know this for sure, but if your tool is designed to be run at import time, there may be some way to access the audio importer functionality, and manage this, rather than on the audio clip itself. But I haven't really worked with Unity's import process, so I can't say for sure.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

How to disable Normalize in AudioImporter 1 Answer

Using Pause and sound on/off in Toggle 2 Answers

Is it possible to raise an audio sources pitch as an audio listener gets closer? 5 Answers

Analyzing an audio file. 0 Answers

Footsteps not playing on Flash Export 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges