Show / Hide Table of Contents

Class Shader

Inheritance
Object
Object
Shader
Inherited Members
Object.GetInstanceID()
Object.GetHashCode()
Object.Equals(Object)
Object.name
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate(Object, Transform, Boolean)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Instantiate<T>(T, Transform, Boolean)
Object.Destroy(Object, Single)
Object.Destroy(Object)
Object.DestroyImmediate(Object, Boolean)
Object.DestroyImmediate(Object)
Object.FindObjectsOfType(Type)
Object.DontDestroyOnLoad(Object)
Object.hideFlags
Object.DestroyObject(Object, Single)
Object.DestroyObject(Object)
Object.FindSceneObjectsOfType(Type)
Object.FindObjectsOfTypeIncludingAssets(Type)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.FindObjectsOfTypeAll(Type)
Object.FindObjectOfType(Type)
Object.ToString()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
public sealed class Shader : Object

Properties

globalMaximumLOD

Declaration
public static int globalMaximumLOD { get; set; }
Property Value
Type Description
Int32

globalRenderPipeline

Declaration
public static string globalRenderPipeline { get; set; }
Property Value
Type Description
String
| Improve this Doc View Source

globalShaderHardwareTier

Declaration
[Obsolete("Use Graphics.activeTier instead (UnityUpgradable) -> UnityEngine.Graphics.activeTier", false)]
public static ShaderHardwareTier globalShaderHardwareTier { get; set; }
Property Value
Type Description
ShaderHardwareTier

isSupported

Declaration
public bool isSupported { get; }
Property Value
Type Description
Boolean

maximumLOD

Declaration
public int maximumLOD { get; set; }
Property Value
Type Description
Int32

renderQueue

Declaration
public int renderQueue { get; }
Property Value
Type Description
Int32

Methods

DisableKeyword(String)

Declaration
public static void DisableKeyword(string keyword)
Parameters
Type Name Description
String keyword

EnableKeyword(String)

Declaration
public static void EnableKeyword(string keyword)
Parameters
Type Name Description
String keyword

Find(String)

Declaration
public static Shader Find(string name)
Parameters
Type Name Description
String name
Returns
Type Description
Shader
| Improve this Doc View Source

GetGlobalColor(Int32)

Declaration
public static Color GetGlobalColor(int nameID)
Parameters
Type Name Description
Int32 nameID
Returns
Type Description
Color
| Improve this Doc View Source

GetGlobalColor(String)

Declaration
public static Color GetGlobalColor(string name)
Parameters
Type Name Description
String name
Returns
Type Description
Color
| Improve this Doc View Source

GetGlobalFloat(Int32)

Declaration
public static float GetGlobalFloat(int nameID)
Parameters
Type Name Description
Int32 nameID
Returns
Type Description
Single
| Improve this Doc View Source

GetGlobalFloat(String)

Declaration
public static float GetGlobalFloat(string name)
Parameters
Type Name Description
String name
Returns
Type Description
Single
| Improve this Doc View Source

GetGlobalFloatArray(Int32)

Declaration
public static float[] GetGlobalFloatArray(int nameID)
Parameters
Type Name Description
Int32 nameID
Returns
Type Description
Single[]
| Improve this Doc View Source

GetGlobalFloatArray(Int32, List<Single>)

Declaration
public static void GetGlobalFloatArray(int nameID, List<float> values)
Parameters
Type Name Description
Int32 nameID
List<Single> values
| Improve this Doc View Source

GetGlobalFloatArray(String)

Declaration
public static float[] GetGlobalFloatArray(string name)
Parameters
Type Name Description
String name
Returns
Type Description
Single[]
| Improve this Doc View Source

GetGlobalFloatArray(String, List<Single>)

Declaration
public static void GetGlobalFloatArray(string name, List<float> values)
Parameters
Type Name Description
String name
List<Single> values
| Improve this Doc View Source

GetGlobalInt(Int32)

Declaration
public static int GetGlobalInt(int nameID)
Parameters
Type Name Description
Int32 nameID
Returns
Type Description
Int32
| Improve this Doc View Source

GetGlobalInt(String)

Declaration
public static int GetGlobalInt(string name)
Parameters
Type Name Description
String name
Returns
Type Description
Int32
| Improve this Doc View Source

GetGlobalMatrix(Int32)

Declaration
public static Matrix4x4 GetGlobalMatrix(int nameID)
Parameters
Type Name Description
Int32 nameID
Returns
Type Description
Matrix4x4
| Improve this Doc View Source

GetGlobalMatrix(String)

Declaration
public static Matrix4x4 GetGlobalMatrix(string name)
Parameters
Type Name Description
String name
Returns
Type Description
Matrix4x4
| Improve this Doc View Source

GetGlobalMatrixArray(Int32)

Declaration
public static Matrix4x4[] GetGlobalMatrixArray(int nameID)
Parameters
Type Name Description
Int32 nameID
Returns
Type Description
Matrix4x4[]
| Improve this Doc View Source

GetGlobalMatrixArray(Int32, List<Matrix4x4>)

Declaration
public static void GetGlobalMatrixArray(int nameID, List<Matrix4x4> values)
Parameters
Type Name Description
Int32 nameID
List<Matrix4x4> values
| Improve this Doc View Source

GetGlobalMatrixArray(String)

Declaration
public static Matrix4x4[] GetGlobalMatrixArray(string name)
Parameters
Type Name Description
String name
Returns
Type Description
Matrix4x4[]
| Improve this Doc View Source

GetGlobalMatrixArray(String, List<Matrix4x4>)

Declaration
public static void GetGlobalMatrixArray(string name, List<Matrix4x4> values)
Parameters
Type Name Description
String name
List<Matrix4x4> values
| Improve this Doc View Source

GetGlobalTexture(Int32)

Declaration
public static Texture GetGlobalTexture(int nameID)
Parameters
Type Name Description
Int32 nameID
Returns
Type Description
Texture
| Improve this Doc View Source

GetGlobalTexture(String)

Declaration
public static Texture GetGlobalTexture(string name)
Parameters
Type Name Description
String name
Returns
Type Description
Texture
| Improve this Doc View Source

GetGlobalVector(Int32)

Declaration
public static Vector4 GetGlobalVector(int nameID)
Parameters
Type Name Description
Int32 nameID
Returns
Type Description
Vector4
| Improve this Doc View Source

GetGlobalVector(String)

Declaration
public static Vector4 GetGlobalVector(string name)
Parameters
Type Name Description
String name
Returns
Type Description
Vector4
| Improve this Doc View Source

GetGlobalVectorArray(Int32)

Declaration
public static Vector4[] GetGlobalVectorArray(int nameID)
Parameters
Type Name Description
Int32 nameID
Returns
Type Description
Vector4[]
| Improve this Doc View Source

GetGlobalVectorArray(Int32, List<Vector4>)

Declaration
public static void GetGlobalVectorArray(int nameID, List<Vector4> values)
Parameters
Type Name Description
Int32 nameID
List<Vector4> values
| Improve this Doc View Source

GetGlobalVectorArray(String)

Declaration
public static Vector4[] GetGlobalVectorArray(string name)
Parameters
Type Name Description
String name
Returns
Type Description
Vector4[]
| Improve this Doc View Source

GetGlobalVectorArray(String, List<Vector4>)

Declaration
public static void GetGlobalVectorArray(string name, List<Vector4> values)
Parameters
Type Name Description
String name
List<Vector4> values

IsKeywordEnabled(String)

Declaration
public static bool IsKeywordEnabled(string keyword)
Parameters
Type Name Description
String keyword
Returns
Type Description
Boolean

PropertyToID(String)

Declaration
public static int PropertyToID(string name)
Parameters
Type Name Description
String name
Returns
Type Description
Int32
| Improve this Doc View Source

SetGlobalBuffer(Int32, ComputeBuffer)

Declaration
public static void SetGlobalBuffer(int nameID, ComputeBuffer value)
Parameters
Type Name Description
Int32 nameID
ComputeBuffer value
| Improve this Doc View Source

SetGlobalBuffer(String, ComputeBuffer)

Declaration
public static void SetGlobalBuffer(string name, ComputeBuffer value)
Parameters
Type Name Description
String name
ComputeBuffer value
| Improve this Doc View Source

SetGlobalColor(Int32, Color)

Declaration
public static void SetGlobalColor(int nameID, Color value)
Parameters
Type Name Description
Int32 nameID
Color value
| Improve this Doc View Source

SetGlobalColor(String, Color)

Declaration
public static void SetGlobalColor(string name, Color value)
Parameters
Type Name Description
String name
Color value
| Improve this Doc View Source

SetGlobalFloat(Int32, Single)

Declaration
public static void SetGlobalFloat(int nameID, float value)
Parameters
Type Name Description
Int32 nameID
Single value
| Improve this Doc View Source

SetGlobalFloat(String, Single)

Declaration
public static void SetGlobalFloat(string name, float value)
Parameters
Type Name Description
String name
Single value
| Improve this Doc View Source

SetGlobalFloatArray(Int32, List<Single>)

Declaration
public static void SetGlobalFloatArray(int nameID, List<float> values)
Parameters
Type Name Description
Int32 nameID
List<Single> values
| Improve this Doc View Source

SetGlobalFloatArray(Int32, Single[])

Declaration
public static void SetGlobalFloatArray(int nameID, float[] values)
Parameters
Type Name Description
Int32 nameID
Single[] values
| Improve this Doc View Source

SetGlobalFloatArray(String, List<Single>)

Declaration
public static void SetGlobalFloatArray(string name, List<float> values)
Parameters
Type Name Description
String name
List<Single> values
| Improve this Doc View Source

SetGlobalFloatArray(String, Single[])

Declaration
public static void SetGlobalFloatArray(string name, float[] values)
Parameters
Type Name Description
String name
Single[] values
| Improve this Doc View Source

SetGlobalInt(Int32, Int32)

Declaration
public static void SetGlobalInt(int nameID, int value)
Parameters
Type Name Description
Int32 nameID
Int32 value
| Improve this Doc View Source

SetGlobalInt(String, Int32)

Declaration
public static void SetGlobalInt(string name, int value)
Parameters
Type Name Description
String name
Int32 value
| Improve this Doc View Source

SetGlobalMatrix(Int32, Matrix4x4)

Declaration
public static void SetGlobalMatrix(int nameID, Matrix4x4 value)
Parameters
Type Name Description
Int32 nameID
Matrix4x4 value
| Improve this Doc View Source

SetGlobalMatrix(String, Matrix4x4)

Declaration
public static void SetGlobalMatrix(string name, Matrix4x4 value)
Parameters
Type Name Description
String name
Matrix4x4 value
| Improve this Doc View Source

SetGlobalMatrixArray(Int32, List<Matrix4x4>)

Declaration
public static void SetGlobalMatrixArray(int nameID, List<Matrix4x4> values)
Parameters
Type Name Description
Int32 nameID
List<Matrix4x4> values
| Improve this Doc View Source

SetGlobalMatrixArray(Int32, Matrix4x4[])

Declaration
public static void SetGlobalMatrixArray(int nameID, Matrix4x4[] values)
Parameters
Type Name Description
Int32 nameID
Matrix4x4[] values
| Improve this Doc View Source

SetGlobalMatrixArray(String, List<Matrix4x4>)

Declaration
public static void SetGlobalMatrixArray(string name, List<Matrix4x4> values)
Parameters
Type Name Description
String name
List<Matrix4x4> values
| Improve this Doc View Source

SetGlobalMatrixArray(String, Matrix4x4[])

Declaration
public static void SetGlobalMatrixArray(string name, Matrix4x4[] values)
Parameters
Type Name Description
String name
Matrix4x4[] values
| Improve this Doc View Source

SetGlobalTexture(Int32, Texture)

Declaration
public static void SetGlobalTexture(int nameID, Texture value)
Parameters
Type Name Description
Int32 nameID
Texture value
| Improve this Doc View Source

SetGlobalTexture(String, Texture)

Declaration
public static void SetGlobalTexture(string name, Texture value)
Parameters
Type Name Description
String name
Texture value
| Improve this Doc View Source

SetGlobalVector(Int32, Vector4)

Declaration
public static void SetGlobalVector(int nameID, Vector4 value)
Parameters
Type Name Description
Int32 nameID
Vector4 value
| Improve this Doc View Source

SetGlobalVector(String, Vector4)

Declaration
public static void SetGlobalVector(string name, Vector4 value)
Parameters
Type Name Description
String name
Vector4 value
| Improve this Doc View Source

SetGlobalVectorArray(Int32, List<Vector4>)

Declaration
public static void SetGlobalVectorArray(int nameID, List<Vector4> values)
Parameters
Type Name Description
Int32 nameID
List<Vector4> values
| Improve this Doc View Source

SetGlobalVectorArray(Int32, Vector4[])

Declaration
public static void SetGlobalVectorArray(int nameID, Vector4[] values)
Parameters
Type Name Description
Int32 nameID
Vector4[] values
| Improve this Doc View Source

SetGlobalVectorArray(String, List<Vector4>)

Declaration
public static void SetGlobalVectorArray(string name, List<Vector4> values)
Parameters
Type Name Description
String name
List<Vector4> values
| Improve this Doc View Source

SetGlobalVectorArray(String, Vector4[])

Declaration
public static void SetGlobalVectorArray(string name, Vector4[] values)
Parameters
Type Name Description
String name
Vector4[] values

WarmupAllShaders()

Declaration
public static void WarmupAllShaders()

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX