UnityEngine.Material
class UnityEngine.Material
Fields and Properties:
- UnityEngine.Shader shader
- UnityEngine.Color color
- UnityEngine.Texture mainTexture
- UnityEngine.Vector2 mainTextureOffset
- UnityEngine.Vector2 mainTextureScale
- int renderQueue
- UnityEngine.MaterialGlobalIlluminationFlags globalIlluminationFlags
- bool doubleSidedGI
- bool enableInstancing
- int passCount
- string[] shaderKeywords
Constructors:
- UnityEngine.Material.New(UnityEngine.Shader)
- UnityEngine.Material.New(UnityEngine.Material)
- UnityEngine.Material.New(string)
Methods:
- (static) UnityEngine.Material UnityEngine.Material.Create(string)
- bool HasProperty(int)
- bool HasProperty(string)
- void EnableKeyword(string)
- void DisableKeyword(string)
- bool IsKeywordEnabled(string)
- void SetShaderPassEnabled(string, bool)
- bool GetShaderPassEnabled(string)
- string GetPassName(int)
- int FindPass(string)
- void SetOverrideTag(string, string)
- string GetTag(string, bool, string)
- string GetTag(string, bool)
- void Lerp(UnityEngine.Material, UnityEngine.Material, float)
- bool SetPass(int)
- void CopyPropertiesFromMaterial(UnityEngine.Material)
- int ComputeCRC()
- string[] GetTexturePropertyNames()
- int[] GetTexturePropertyNameIDs()
- void GetTexturePropertyNames(
System.Collections.Generic.List<string>
) - void GetTexturePropertyNameIDs(
System.Collections.Generic.List<int>
) - void SetFloat(string, float)
- void SetFloat(int, float)
- void SetInt(string, int)
- void SetInt(int, int)
- void SetColor(string, UnityEngine.Color)
- void SetColor(int, UnityEngine.Color)
- void SetVector(string, UnityEngine.Vector4)
- void SetVector(int, UnityEngine.Vector4)
- void SetMatrix(string, UnityEngine.Matrix4x4)
- void SetMatrix(int, UnityEngine.Matrix4x4)
- void SetTexture(string, UnityEngine.Texture)
- void SetTexture(int, UnityEngine.Texture)
- void SetTexture(string, UnityEngine.RenderTexture, UnityEngine.Rendering.RenderTextureSubElement)
- void SetTexture(int, UnityEngine.RenderTexture, UnityEngine.Rendering.RenderTextureSubElement)
- void SetBuffer(string, UnityEngine.ComputeBuffer)
- void SetBuffer(int, UnityEngine.ComputeBuffer)
- void SetBuffer(string, UnityEngine.GraphicsBuffer)
- void SetBuffer(int, UnityEngine.GraphicsBuffer)
- void SetConstantBuffer(string, UnityEngine.ComputeBuffer, int, int)
- void SetConstantBuffer(int, UnityEngine.ComputeBuffer, int, int)
- void SetConstantBuffer(string, UnityEngine.GraphicsBuffer, int, int)
- void SetConstantBuffer(int, UnityEngine.GraphicsBuffer, int, int)
- void SetFloatArray(string,
System.Collections.Generic.List<float>
) - void SetFloatArray(int,
System.Collections.Generic.List<float>
) - void SetFloatArray(string, float[])
- void SetFloatArray(int, float[])
- void SetColorArray(string,
System.Collections.Generic.List<UnityEngine.Color>
) - void SetColorArray(int,
System.Collections.Generic.List<UnityEngine.Color>
) - void SetColorArray(string, UnityEngine.Color[])
- void SetColorArray(int, UnityEngine.Color[])
- void SetVectorArray(string,
System.Collections.Generic.List<UnityEngine.Vector4>
) - void SetVectorArray(int,
System.Collections.Generic.List<UnityEngine.Vector4>
) - void SetVectorArray(string, UnityEngine.Vector4[])
- void SetVectorArray(int, UnityEngine.Vector4[])
- void SetMatrixArray(string,
System.Collections.Generic.List<UnityEngine.Matrix4x4>
) - void SetMatrixArray(int,
System.Collections.Generic.List<UnityEngine.Matrix4x4>
) - void SetMatrixArray(string, UnityEngine.Matrix4x4[])
- void SetMatrixArray(int, UnityEngine.Matrix4x4[])
- float GetFloat(string)
- float GetFloat(int)
- int GetInt(string)
- int GetInt(int)
- UnityEngine.Color GetColor(string)
- UnityEngine.Color GetColor(int)
- UnityEngine.Vector4 GetVector(string)
- UnityEngine.Vector4 GetVector(int)
- UnityEngine.Matrix4x4 GetMatrix(string)
- UnityEngine.Matrix4x4 GetMatrix(int)
- UnityEngine.Texture GetTexture(string)
- UnityEngine.Texture GetTexture(int)
- float[] GetFloatArray(string)
- float[] GetFloatArray(int)
- UnityEngine.Color[] GetColorArray(string)
- UnityEngine.Color[] GetColorArray(int)
- UnityEngine.Vector4[] GetVectorArray(string)
- UnityEngine.Vector4[] GetVectorArray(int)
- UnityEngine.Matrix4x4[] GetMatrixArray(string)
- UnityEngine.Matrix4x4[] GetMatrixArray(int)
- void GetFloatArray(string,
System.Collections.Generic.List<float>
) - void GetFloatArray(int,
System.Collections.Generic.List<float>
) - void GetColorArray(string,
System.Collections.Generic.List<UnityEngine.Color>
) - void GetColorArray(int,
System.Collections.Generic.List<UnityEngine.Color>
) - void GetVectorArray(string,
System.Collections.Generic.List<UnityEngine.Vector4>
) - void GetVectorArray(int,
System.Collections.Generic.List<UnityEngine.Vector4>
) - void GetMatrixArray(string,
System.Collections.Generic.List<UnityEngine.Matrix4x4>
) - void GetMatrixArray(int,
System.Collections.Generic.List<UnityEngine.Matrix4x4>
) - void SetTextureOffset(string, UnityEngine.Vector2)
- void SetTextureOffset(int, UnityEngine.Vector2)
- void SetTextureScale(string, UnityEngine.Vector2)
- void SetTextureScale(int, UnityEngine.Vector2)
- UnityEngine.Vector2 GetTextureOffset(string)
- UnityEngine.Vector2 GetTextureOffset(int)
- UnityEngine.Vector2 GetTextureScale(string)
- UnityEngine.Vector2 GetTextureScale(int)