Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
0
Question by JFBillingsley · Aug 06, 2013 at 01:54 AM · editortexturemipmapsimporter

Why isn't the TextureImporter mipmap bias exposed in the editor?

TextureImporter.mipMapBias was added in Unity 3.2. I'm using 4.1.5 and I'm surprised that it still isn't available in the editor. For some reason, you still have to access it through code by writing an editor script like in this answer: http://answers.unity3d.com/questions/49826/mipmapbias-in-the-texture-importer.html

But... why? Why is literally every other property of TextureImporter exposed in the editor except this one?

Comment
Add comment
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

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by blake_seow · May 20, 2017 at 09:20 AM

I know this is a old topic, but I ran into same problem today, haven't been able to find a solution, so I try wrote a editor script to do that, turns out it works. In case someone have same problem in future, I decided to post it here, this script can work for mutiple selections too, means you can select bunch of textures and click the button to change mipmap bias for them all. I also added settings for filter mode, in case someone need.

if (GUILayout.Button("MipBias")) { //settings float mipBias=-1F; FilterMode filter= FilterMode.Trilinear; int aniso=5;

         foreach (Object obj in Selection.objects) {
             string path = AssetDatabase.GetAssetPath(obj);
             TextureImporter texImporter = AssetImporter.GetAtPath(path) as TextureImporter;
             if (texImporter != null)
             {
                 texImporter.mipmapEnabled = true;
                 texImporter.filterMode =filter;
                 texImporter.anisoLevel = aniso;
                 texImporter.mipMapBias = mipBias;
                 AssetDatabase.ImportAsset(path);
             }
         }
     }
Comment
Add comment · 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
1

Answer by steven3Dim · Nov 21, 2017 at 08:18 AM

In this thread https://answers.unity.com/questions/49826/mipmapbias-in-the-texture-importer.html somebody made a nice script to set the MipMap Bias. When you set it, it is saved in the texture-asset, so available after restart. You can set of any selection of textures the setting by right-clicking.

I derived the following script for my own needs: Set MipMap Bias

Note that I could go all the way to bias -4 to get the sharpest images.


setmipmapbias.png (10.6 kB)
Comment
Add comment · 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
-1

Answer by liszto · Aug 06, 2013 at 09:56 AM

I don't think it's the place to expose this missing property. Post that in Unity Support forum or in others related sub-forums. Thanks.

Comment
Add comment · Show 3 · 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 JFBillingsley · Aug 06, 2013 at 09:58 AM 0
Share

Sorry about that. I'll be deleting this then... ;)

avatar image JFBillingsley · Aug 06, 2013 at 10:00 AM 0
Share

Or not. Oh well.

avatar image liszto · Aug 06, 2013 at 04:09 PM 0
Share

I don't have enough rigth to do this. Sorry.

Just post this on Unity Forum and it will be fine :)

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

17 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Mipmap view not working in editor. 0 Answers

Texture importer, changing original file size 0 Answers

Texture Fails in Mobile 1 Answer

Editor Script Texture Import Settings, Asset Store 1 Answer

MipMapping NVidia Problem 0 Answers


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