SystemInfo.graphicsShaderLevelstatic var graphicsShaderLevel : intDescriptionGraphics device shader capability level (Read Only). This is approximate "shader capability" level of the graphics device, expressed in DirectX shader model terms. Possible values are:
See Also: SystemInfo.graphicsPixelFillrate.
JavaScripts
// Check for shader model 2.0 or better support
if (SystemInfo.graphicsShaderLevel >= 20) print ("Woohoo, decent shaders supported!"); using UnityEngine;
using System.Collections; public class example : MonoBehaviour { void Awake() { if (SystemInfo.graphicsShaderLevel >= 20) print("Woohoo, decent shaders supported!"); } } import UnityEngine
import System.Collections class example(MonoBehaviour): def Awake(): if SystemInfo.graphicsShaderLevel >= 20: print('Woohoo, decent shaders supported!') |
