Property | Type | Description | |
---|---|---|---|
Material | System | ||
Material | System | ||
TryGet |
Method | Description | |
---|---|---|
Clone ( int subMaterial = -1 ) : |
Clones a material
|
|
Create ( string name, bool makeIfNotFound = true, bool nonRemovable = false ) : |
||
Equals ( object obj ) : bool | ||
Find ( string name ) : |
||
Get ( |
||
GetHashCode ( ) : int | ||
GetParam ( string paramName ) : float |
Gets a material's parameter value by name.
|
|
GetParamColor ( string paramName ) : Color |
Gets a material's parameter value by name.
|
|
GetShaderParamName ( int index ) : string |
Gets a shader parameter name by index. See ShaderParamCount
|
|
GetSubmaterial ( int slot ) : |
Gets a submaterial by slot.
|
|
Load ( string name, bool makeIfNotFound = true, bool nonRemovable = false ) : |
||
Set ( |
||
SetParam ( string paramName, Color value ) : bool |
Sets a material parameter value by name.
|
|
SetParam ( string paramName, float value ) : bool |
Sets a material parameter value by name.
|
|
SetShaderParam ( ShaderColorParameter param, Color value ) : void |
Sets a shader parameter value by name.
|
|
SetShaderParam ( ShaderColorParameter param, |
Sets a shader parameter value by name.
|
|
SetShaderParam ( ShaderFloatParameter param, float value ) : void |
Sets a shader parameter value by name.
|
|
SetShaderParam ( string paramName, Color newVal ) : void |
Sets a shader parameter value by name.
|
|
SetShaderParam ( string paramName, float newVal ) : void |
Sets a shader parameter value by name.
|
|
TryGetParam ( string paramName, Color &value ) : bool |
Attempts to get parameter value by name.
|
|
TryGetParam ( string paramName, float &value ) : bool |
Attempts to get parameter value by name.
|
Method | Description | |
---|---|---|
Material ( ) : System | ||
Material ( |
||
TryGet ( |
public Clone ( int subMaterial = -1 ) : |
||
subMaterial | int | If negative, all sub materials are cloned, otherwise only the specified slot is |
return |
public static Create ( string name, bool makeIfNotFound = true, bool nonRemovable = false ) : |
||
name | string | |
makeIfNotFound | bool | |
nonRemovable | bool | |
return |
public static Find ( string name ) : |
||
name | string | |
return |
public static Get ( |
||
entity | ||
slot | int | |
return |
public GetParamColor ( string paramName ) : Color | ||
paramName | string | |
return | Color |
public GetShaderParamName ( int index ) : string | ||
index | int | |
return | string |
public GetSubmaterial ( int slot ) : |
||
slot | int | |
return |
public static Load ( string name, bool makeIfNotFound = true, bool nonRemovable = false ) : |
||
name | string | |
makeIfNotFound | bool | |
nonRemovable | bool | |
return |
public static Set ( |
||
entity | ||
mat | ||
slot | int | |
return | void |
public SetParam ( string paramName, Color value ) : bool | ||
paramName | string | |
value | Color | |
return | bool |
public SetParam ( string paramName, float value ) : bool | ||
paramName | string | |
value | float | |
return | bool |
public SetShaderParam ( ShaderColorParameter param, Color value ) : void | ||
param | ShaderColorParameter | |
value | Color | |
return | void |
public SetShaderParam ( ShaderColorParameter param, |
||
param | ShaderColorParameter | |
value | ||
return | void |
public SetShaderParam ( ShaderFloatParameter param, float value ) : void | ||
param | ShaderFloatParameter | |
value | float | |
return | void |
public SetShaderParam ( string paramName, Color newVal ) : void | ||
paramName | string | |
newVal | Color | |
return | void |
public SetShaderParam ( string paramName, float newVal ) : void | ||
paramName | string | |
newVal | float | |
return | void |
public TryGetParam ( string paramName, Color &value ) : bool | ||
paramName | string | |
value | Color | |
return | bool |
public TryGetParam ( string paramName, float &value ) : bool | ||
paramName | string | |
value | float | |
return | bool |