Syntax
- string assetNamingInfo(string assetName, namingAttributeSelector)
Parameters
- assetNameInput asset.
- namingAttributeSelectorSpecifies asset information. Supported values are:
- g—for group names
- m—for material names
Returns
A string list with group names or material names, separated with ";" (also after the last entry).
Description
The assetNamingInfo function returns names of groups or materials as a string list, depending on the specified namingAttributeSelector.
Note:
The order of groups or materials in the string list corresponds to the order given by the indexed component split for groups and materials. In other words, the index of an entry in the string list corresponds to the component index.
Related
Examples
The component split is used to extract the material with name "Bark". This can be achieved in three different ways. For the used asset the material name list is mat="Foliage;Foliage__leafcard;Bark;".
|