Representation of shader resource in Mono domain No means of shader copying is provided in this interface so all the accessor properties are read only.
Inherits TaleWorlds.Engine.Resource.
|
static Shader | GetFromResource (string shaderName) |
| Returns the Mono representation of the the shader whose name is 'shaderName'.
|
|
|
string | Name [get] |
| Gets the name of the shader.
|
|
bool | IsValid [get] |
|
|
| Resource () |
|
void | CheckResourceParameter (Resource param, string paramName="") |
| Check if the parameter 'param' is null or invalid and throws an exception containing 'paramName' as further information.
|
|
◆ GetFromResource()
static Shader TaleWorlds.Engine.Shader.GetFromResource |
( |
string |
shaderName | ) |
|
|
static |
- Parameters
-
shaderName | The name of the shader to be retrieved |
- Returns
Returns the Mono representation of the shader whose name is 'shaderName' Returns the previously retrieved instance. A new instance is created if there is none previously or its has been GCed.
If there is a shader named 'shaderName' then returns a valid MBShader object. Otherwise returns null.
◆ GetMaterialShaderFlagMask()
UInt64 TaleWorlds.Engine.Shader.GetMaterialShaderFlagMask |
( |
string |
flagName, |
|
|
bool |
showErrors = true |
|
) |
| |
◆ Name
string TaleWorlds.Engine.Shader.Name |
|
get |