- Home /
C# using a Horizontal Slider for Anistropic Filtering
Hi everyone, is it possible to use a horizontal slider for Anistropic Filtering? Anistropic Filtering doesn't use a integer like Texture Quality and Anti-Ailasing. So I'm not sure how to control it through a GUI Element. It doesn't have to be a horizontal slider . But I need to control Anistropic Filtering in some form of GUI Element.
anisotropicFilteringInt = Mathf.RoundToInt(GUILayout.HorizontalSlider(anisotropicFilteringInt, 0, 2,GUILayout.Width(75), GUILayout.Height(15)));
Yes I know how to use the GUI controls. I'm just not sure how to implement Anistropic Filtering in one. Anistropic Filtering is its own variable. It has three modes that aren't number, string or bool based. It has it's own made up values. I'm completely stumped as to what to do with it.
Answer by tanoshimi · Oct 02, 2013 at 06:42 AM
I'm not sure what you're talking...
To set the anisotropic filtering level of a texture, you set Texture.anisoLevel to an integer value between 1-9.
If you want to enable/disable anisotropic filtering globally, you set the anisotropicFiltering property in Quality Settings.
If you're trying to set any other property that has "three modes that aren't number, string or bool based", then by definition it can't be controlled by a slider.
I had a feeling I was using the wrong thing. Thanks for the info.
Your answer
Follow this Question
Related Questions
C# Multiple GUI.Tooltips 2 Answers
C# Rows and Columns GUILayout.Window Issues 1 Answer
C# Boolean Doesn't Change Value 1 Answer
C# GUI.Tooltip If Statement 2 Answers