Свойство | Type | Description | |
---|---|---|---|
Material | System | ||
Material | System | ||
TryGet |
Méthode | 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.
|
Méthode | 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 |
Résultat |
public static Create ( string name, bool makeIfNotFound = true, bool nonRemovable = false ) : |
||
name | string | |
makeIfNotFound | bool | |
nonRemovable | bool | |
Résultat |
public static Find ( string name ) : |
||
name | string | |
Résultat |
public static Get ( |
||
entity | ||
slot | int | |
Résultat |
public GetParam ( string paramName ) : float | ||
paramName | string | |
Résultat | float |
public GetParamColor ( string paramName ) : Color | ||
paramName | string | |
Résultat | Color |
public GetShaderParamName ( int index ) : string | ||
index | int | |
Résultat | string |
public GetSubmaterial ( int slot ) : |
||
slot | int | |
Résultat |
public static Load ( string name, bool makeIfNotFound = true, bool nonRemovable = false ) : |
||
name | string | |
makeIfNotFound | bool | |
nonRemovable | bool | |
Résultat |
public static Set ( |
||
entity | ||
mat | ||
slot | int | |
Résultat | void |
public SetParam ( string paramName, Color value ) : bool | ||
paramName | string | |
value | Color | |
Résultat | bool |
public SetParam ( string paramName, float value ) : bool | ||
paramName | string | |
value | float | |
Résultat | bool |
public SetShaderParam ( ShaderColorParameter param, Color value ) : void | ||
param | ShaderColorParameter | |
value | Color | |
Résultat | void |
public SetShaderParam ( ShaderColorParameter param, |
||
param | ShaderColorParameter | |
value | ||
Résultat | void |
public SetShaderParam ( ShaderFloatParameter param, float value ) : void | ||
param | ShaderFloatParameter | |
value | float | |
Résultat | void |
public SetShaderParam ( string paramName, Color newVal ) : void | ||
paramName | string | |
newVal | Color | |
Résultat | void |
public SetShaderParam ( string paramName, float newVal ) : void | ||
paramName | string | |
newVal | float | |
Résultat | void |
public TryGetParam ( string paramName, Color &value ) : bool | ||
paramName | string | |
value | Color | |
Résultat | bool |
public TryGetParam ( string paramName, float &value ) : bool | ||
paramName | string | |
value | float | |
Résultat | bool |