SHARE
TWEET

Untitled

a guest Jul 9th, 2017 152 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using UnityEngine;
  2. using System;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5.  
  6. public class Found : MonoBehaviour
  7. {
  8.     float anisoValue = 0f;
  9.  
  10.     void OnGUI()
  11.     {
  12.         anisoValue = GUI.HorizontalSlider(new Rect(0, 0, 150, 30), anisoValue, 0f, 2f);
  13.         anisoValue = Mathf.RoundToInt(anisoValue);
  14.  
  15.         if (anisoValue == 0f)
  16.             QualitySettings.anisotropicFiltering = AnisotropicFiltering.Disable;
  17.         else if (anisoValue == 1f)
  18.             QualitySettings.anisotropicFiltering = AnisotropicFiltering.Enable;
  19.         else if (anisoValue == 2f)
  20.             QualitySettings.anisotropicFiltering = AnisotropicFiltering.ForceEnable;
  21.  
  22.         GUI.Label(new Rect(0, 50, 150, 30), QualitySettings.anisotropicFiltering.ToString());
  23.     }
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top