Material¶
More information can be found in the Unity API Reference and maybe in the Unity Manual.
Constructors¶
Constructor |
Description |
---|---|
Members¶
Member |
Description |
---|---|
Methods¶
Method |
Description |
---|---|
Details¶
-
class
Material
¶ -
-
bool
doubleSidedGI
¶
-
bool
enableInstancing
¶
-
string
name
¶
-
const int
passCount
¶
-
int
renderQueue
¶
-
array<string>
shaderKeywords
¶
-
int
ComputeCRC
()¶
-
void
DisableKeyword
(string keyword)¶
-
void
EnableKeyword
(string keyword)¶
-
int
FindPass
(string passName)¶
-
float
GetFloat
(string name)¶
-
float
GetFloat
(int nameID)¶
-
array<float>
GetFloatArray
(string name)¶
-
array<float>
GetFloatArray
(int nameID)¶
-
void
GetFloatArray
(string name, array<float> values)¶
-
void
GetFloatArray
(int nameID, array<float> values)¶
-
int
GetHashCode
()¶
-
int
GetInt
(string name)¶
-
int
GetInt
(int nameID)¶
-
string
GetPassName
(int pass)¶
-
bool
GetShaderPassEnabled
(string passName)¶
-
string
GetTag
(string tag, bool searchFallbacks)¶
-
string
GetTag
(string tag, bool searchFallbacks, string defaultValue)¶
-
array<int>
GetTexturePropertyNameIDs
()¶
-
void
GetTexturePropertyNameIDs
(array<int> outNames)¶
-
array<string>
GetTexturePropertyNames
()¶
-
void
GetTexturePropertyNames
(array<string> outNames)¶
-
bool
HasProperty
(int nameID)¶
-
bool
HasProperty
(string name)¶
-
bool
IsKeywordEnabled
(string keyword)¶
-
void
SetColorArray
(string name, array<Color> values)
-
void
SetColorArray
(int nameID, array<Color> values)
-
void
SetFloat
(string name, float value)¶
-
void
SetFloat
(int nameID, float value)¶
-
void
SetFloatArray
(string name, array<float> values)¶
-
void
SetFloatArray
(int nameID, array<float> values)¶
-
void
SetFloatArray
(string name, array<float> values)
-
void
SetFloatArray
(int nameID, array<float> values)
-
void
SetInt
(string name, int value)¶
-
void
SetInt
(int nameID, int value)¶
-
void
SetMatrixArray
(string name, array<Matrix4x4> values)
-
void
SetMatrixArray
(int nameID, array<Matrix4x4> values)
-
void
SetOverrideTag
(string tag, string val)¶
-
bool
SetPass
(int pass)¶
-
void
SetShaderPassEnabled
(string passName, bool enabled)¶
-
void
SetVectorArray
(string name, array<Vector4> values)
-
void
SetVectorArray
(int nameID, array<Vector4> values)
-
string
ToString
()¶
-
bool