Class MaterialPropertyBlock
Inheritance
MaterialPropertyBlock
Assembly: UnityEngine.dll
Syntax
public sealed class MaterialPropertyBlock
Constructors
|
Improve this Doc
View Source
MaterialPropertyBlock()
Declaration
public MaterialPropertyBlock()
Properties
isEmpty
Declaration
public bool isEmpty { get; }
Property Value
Methods
|
Improve this Doc
View Source
AddColor(Int32, Color)
Declaration
[Obsolete("Use SetColor instead (UnityUpgradable) -> SetColor(*)", false)]
public void AddColor(int nameID, Color value)
Parameters
|
Improve this Doc
View Source
AddColor(String, Color)
Declaration
[Obsolete("Use SetColor instead (UnityUpgradable) -> SetColor(*)", false)]
public void AddColor(string name, Color value)
Parameters
|
Improve this Doc
View Source
AddFloat(Int32, Single)
Declaration
[Obsolete("Use SetFloat instead (UnityUpgradable) -> SetFloat(*)", false)]
public void AddFloat(int nameID, float value)
Parameters
|
Improve this Doc
View Source
AddFloat(String, Single)
Declaration
[Obsolete("Use SetFloat instead (UnityUpgradable) -> SetFloat(*)", false)]
public void AddFloat(string name, float value)
Parameters
|
Improve this Doc
View Source
AddMatrix(Int32, Matrix4x4)
Declaration
[Obsolete("Use SetMatrix instead (UnityUpgradable) -> SetMatrix(*)", false)]
public void AddMatrix(int nameID, Matrix4x4 value)
Parameters
|
Improve this Doc
View Source
AddMatrix(String, Matrix4x4)
Declaration
[Obsolete("Use SetMatrix instead (UnityUpgradable) -> SetMatrix(*)", false)]
public void AddMatrix(string name, Matrix4x4 value)
Parameters
|
Improve this Doc
View Source
AddTexture(Int32, Texture)
Declaration
[Obsolete("Use SetTexture instead (UnityUpgradable) -> SetTexture(*)", false)]
public void AddTexture(int nameID, Texture value)
Parameters
|
Improve this Doc
View Source
AddTexture(String, Texture)
Declaration
[Obsolete("Use SetTexture instead (UnityUpgradable) -> SetTexture(*)", false)]
public void AddTexture(string name, Texture value)
Parameters
|
Improve this Doc
View Source
AddVector(Int32, Vector4)
Declaration
[Obsolete("Use SetVector instead (UnityUpgradable) -> SetVector(*)", false)]
public void AddVector(int nameID, Vector4 value)
Parameters
|
Improve this Doc
View Source
AddVector(String, Vector4)
Declaration
[Obsolete("Use SetVector instead (UnityUpgradable) -> SetVector(*)", false)]
public void AddVector(string name, Vector4 value)
Parameters
|
Improve this Doc
View Source
Clear()
Declaration
|
Improve this Doc
View Source
CopyProbeOcclusionArrayFrom(List<Vector4>)
Declaration
public void CopyProbeOcclusionArrayFrom(List<Vector4> occlusionProbes)
Parameters
|
Improve this Doc
View Source
CopyProbeOcclusionArrayFrom(List<Vector4>, Int32, Int32, Int32)
Declaration
public void CopyProbeOcclusionArrayFrom(List<Vector4> occlusionProbes, int sourceStart, int destStart, int count)
Parameters
|
Improve this Doc
View Source
CopyProbeOcclusionArrayFrom(Vector4[])
Declaration
public void CopyProbeOcclusionArrayFrom(Vector4[] occlusionProbes)
Parameters
Type |
Name |
Description |
Vector4[] |
occlusionProbes |
|
|
Improve this Doc
View Source
CopyProbeOcclusionArrayFrom(Vector4[], Int32, Int32, Int32)
Declaration
public void CopyProbeOcclusionArrayFrom(Vector4[] occlusionProbes, int sourceStart, int destStart, int count)
Parameters
|
Improve this Doc
View Source
CopySHCoefficientArraysFrom(List<SphericalHarmonicsL2>)
Declaration
public void CopySHCoefficientArraysFrom(List<SphericalHarmonicsL2> lightProbes)
Parameters
|
Improve this Doc
View Source
CopySHCoefficientArraysFrom(List<SphericalHarmonicsL2>, Int32, Int32, Int32)
Declaration
public void CopySHCoefficientArraysFrom(List<SphericalHarmonicsL2> lightProbes, int sourceStart, int destStart, int count)
Parameters
|
Improve this Doc
View Source
CopySHCoefficientArraysFrom(SphericalHarmonicsL2[])
Declaration
public void CopySHCoefficientArraysFrom(SphericalHarmonicsL2[] lightProbes)
Parameters
|
Improve this Doc
View Source
CopySHCoefficientArraysFrom(SphericalHarmonicsL2[], Int32, Int32, Int32)
Declaration
public void CopySHCoefficientArraysFrom(SphericalHarmonicsL2[] lightProbes, int sourceStart, int destStart, int count)
Parameters
|
Improve this Doc
View Source
Finalize()
Declaration
protected void Finalize()
|
Improve this Doc
View Source
GetColor(Int32)
Declaration
public Color GetColor(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetColor(String)
Declaration
public Color GetColor(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
GetFloat(Int32)
Declaration
public float GetFloat(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetFloat(String)
Declaration
public float GetFloat(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
GetFloatArray(Int32)
Declaration
public float[] GetFloatArray(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetFloatArray(Int32, List<Single>)
Declaration
public void GetFloatArray(int nameID, List<float> values)
Parameters
|
Improve this Doc
View Source
GetFloatArray(String)
Declaration
public float[] GetFloatArray(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
GetFloatArray(String, List<Single>)
Declaration
public void GetFloatArray(string name, List<float> values)
Parameters
|
Improve this Doc
View Source
GetInt(Int32)
Declaration
public int GetInt(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetInt(String)
Declaration
public int GetInt(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
GetMatrix(Int32)
Declaration
public Matrix4x4 GetMatrix(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetMatrix(String)
Declaration
public Matrix4x4 GetMatrix(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
GetMatrixArray(Int32)
Declaration
public Matrix4x4[] GetMatrixArray(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetMatrixArray(Int32, List<Matrix4x4>)
Declaration
public void GetMatrixArray(int nameID, List<Matrix4x4> values)
Parameters
|
Improve this Doc
View Source
GetMatrixArray(String)
Declaration
public Matrix4x4[] GetMatrixArray(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
GetMatrixArray(String, List<Matrix4x4>)
Declaration
public void GetMatrixArray(string name, List<Matrix4x4> values)
Parameters
|
Improve this Doc
View Source
GetTexture(Int32)
Declaration
public Texture GetTexture(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetTexture(String)
Declaration
public Texture GetTexture(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
GetVector(Int32)
Declaration
public Vector4 GetVector(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetVector(String)
Declaration
public Vector4 GetVector(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
GetVectorArray(Int32)
Declaration
public Vector4[] GetVectorArray(int nameID)
Parameters
Type |
Name |
Description |
Int32 |
nameID |
|
Returns
|
Improve this Doc
View Source
GetVectorArray(Int32, List<Vector4>)
Declaration
public void GetVectorArray(int nameID, List<Vector4> values)
Parameters
|
Improve this Doc
View Source
GetVectorArray(String)
Declaration
public Vector4[] GetVectorArray(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
GetVectorArray(String, List<Vector4>)
Declaration
public void GetVectorArray(string name, List<Vector4> values)
Parameters
|
Improve this Doc
View Source
SetBuffer(Int32, ComputeBuffer)
Declaration
public void SetBuffer(int nameID, ComputeBuffer value)
Parameters
|
Improve this Doc
View Source
SetBuffer(String, ComputeBuffer)
Declaration
public void SetBuffer(string name, ComputeBuffer value)
Parameters
|
Improve this Doc
View Source
SetColor(Int32, Color)
Declaration
public void SetColor(int nameID, Color value)
Parameters
|
Improve this Doc
View Source
SetColor(String, Color)
Declaration
public void SetColor(string name, Color value)
Parameters
|
Improve this Doc
View Source
SetFloat(Int32, Single)
Declaration
public void SetFloat(int nameID, float value)
Parameters
|
Improve this Doc
View Source
SetFloat(String, Single)
Declaration
public void SetFloat(string name, float value)
Parameters
|
Improve this Doc
View Source
SetFloatArray(Int32, List<Single>)
Declaration
public void SetFloatArray(int nameID, List<float> values)
Parameters
|
Improve this Doc
View Source
SetFloatArray(Int32, Single[])
Declaration
public void SetFloatArray(int nameID, float[] values)
Parameters
|
Improve this Doc
View Source
SetFloatArray(String, List<Single>)
Declaration
public void SetFloatArray(string name, List<float> values)
Parameters
|
Improve this Doc
View Source
SetFloatArray(String, Single[])
Declaration
public void SetFloatArray(string name, float[] values)
Parameters
|
Improve this Doc
View Source
SetInt(Int32, Int32)
Declaration
public void SetInt(int nameID, int value)
Parameters
|
Improve this Doc
View Source
SetInt(String, Int32)
Declaration
public void SetInt(string name, int value)
Parameters
|
Improve this Doc
View Source
SetMatrix(Int32, Matrix4x4)
Declaration
public void SetMatrix(int nameID, Matrix4x4 value)
Parameters
|
Improve this Doc
View Source
SetMatrix(String, Matrix4x4)
Declaration
public void SetMatrix(string name, Matrix4x4 value)
Parameters
|
Improve this Doc
View Source
SetMatrixArray(Int32, List<Matrix4x4>)
Declaration
public void SetMatrixArray(int nameID, List<Matrix4x4> values)
Parameters
|
Improve this Doc
View Source
SetMatrixArray(Int32, Matrix4x4[])
Declaration
public void SetMatrixArray(int nameID, Matrix4x4[] values)
Parameters
|
Improve this Doc
View Source
SetMatrixArray(String, List<Matrix4x4>)
Declaration
public void SetMatrixArray(string name, List<Matrix4x4> values)
Parameters
|
Improve this Doc
View Source
SetMatrixArray(String, Matrix4x4[])
Declaration
public void SetMatrixArray(string name, Matrix4x4[] values)
Parameters
|
Improve this Doc
View Source
SetTexture(Int32, Texture)
Declaration
public void SetTexture(int nameID, Texture value)
Parameters
|
Improve this Doc
View Source
SetTexture(String, Texture)
Declaration
public void SetTexture(string name, Texture value)
Parameters
|
Improve this Doc
View Source
SetVector(Int32, Vector4)
Declaration
public void SetVector(int nameID, Vector4 value)
Parameters
|
Improve this Doc
View Source
SetVector(String, Vector4)
Declaration
public void SetVector(string name, Vector4 value)
Parameters
|
Improve this Doc
View Source
SetVectorArray(Int32, List<Vector4>)
Declaration
public void SetVectorArray(int nameID, List<Vector4> values)
Parameters
|
Improve this Doc
View Source
SetVectorArray(Int32, Vector4[])
Declaration
public void SetVectorArray(int nameID, Vector4[] values)
Parameters
|
Improve this Doc
View Source
SetVectorArray(String, List<Vector4>)
Declaration
public void SetVectorArray(string name, List<Vector4> values)
Parameters
|
Improve this Doc
View Source
SetVectorArray(String, Vector4[])
Declaration
public void SetVectorArray(string name, Vector4[] values)
Parameters
Extension Methods