Enfusion Script API
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
Material Interface Reference
Inheritance diagram for Material:
[legend]

Public Member Functions

proto external bool SetParam (string paramName, void value)
 set parametr of material by string name
 
proto external void ResetParam (string paramName)
 reset parametr of material to default value
 
proto external int GetParamIndex (string paramName)
 set parametr index for faster access to material properties
 
proto external void SetParamByIndex (int paramIndex, void value)
 Set parameter of material by index.
 
proto external void Release ()
 release material (created be CreateMaterial)
 
proto external void GetName (out string name)
 material name
 
- Public Member Functions inherited from pointer
proto string ToString ()
 

Static Public Member Functions

static proto Material GetMaterial (ResourceName matName)
 Get material, must exist in internal cache.
 
static proto Material GetOrLoadMaterial (ResourceName matName, int flags)
 get material or load it of it doesn't exist in internal cache
 
static proto Material Create (string name, string matClassName, map< string, string > params=null)
 

Member Function Documentation

◆ Create()

static proto Material Material.Create ( string  name,
string  matClassName,
map< string, string params = null 
)
static

◆ GetMaterial()

static proto Material Material.GetMaterial ( ResourceName  matName)
static

Get material, must exist in internal cache.

Parameters
matNamematerial resource

◆ GetName()

proto external void Material.GetName ( out string  name)

material name

◆ GetOrLoadMaterial()

static proto Material Material.GetOrLoadMaterial ( ResourceName  matName,
int  flags 
)
static

get material or load it of it doesn't exist in internal cache

Parameters
matNamematerial resource
flagsmaterial creation flags, use 0

◆ GetParamIndex()

proto external int Material.GetParamIndex ( string  paramName)

set parametr index for faster access to material properties

Parameters
paramNamename of parameter
Returns
parameter index

◆ Release()

proto external void Material.Release ( )

release material (created be CreateMaterial)

◆ ResetParam()

proto external void Material.ResetParam ( string  paramName)

reset parametr of material to default value

Parameters
paramNamename of parameter

◆ SetParam()

proto external bool Material.SetParam ( string  paramName,
void  value 
)

set parametr of material by string name

Parameters
paramNamename of parameter
valuevalue

◆ SetParamByIndex()

proto external void Material.SetParamByIndex ( int  paramIndex,
void  value 
)

Set parameter of material by index.


The documentation for this interface was generated from the following file: