Syntax
- string assetNamingInfo(filePath, namingAttribute)
- string[] assetNamingInfos(filePath, namingAttribute)
Parameters
- filePath—stringPath to asset. See Asset Search for information about search locations.
- namingAttribute—selectorSpecifies asset information.
- g—Group names
- m—Material names
Returns
Group names or material names.
- assetNamingInfo returns a string list, separated with ";" (also after the last entry).
- assetNamingInfos returns a string array.
Description
The functions return names of groups or materials (as a string list or string array), depending on the specified namingAttribute selector.
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 names are [Foliage,Foliage__leafcard,Bark].
|