TriLib 2.2.8
Loading...
Searching...
No Matches
Public Member Functions | List of all members
TriLibCore.Mappers.NameMapper Class Reference

Represents a Mapper used to generate Game Object naming based on source Model specific data. More...

Inheritance diagram for TriLibCore.Mappers.NameMapper:

Public Member Functions

virtual string Map (AssetLoaderContext assetLoaderContext, ModelNamingData data, IModel model, string readerName)
 Returns a final GameObject name based on the input Model information.
 

Detailed Description

Represents a Mapper used to generate Game Object naming based on source Model specific data.

Member Function Documentation

◆ Map()

virtual string TriLibCore.Mappers.NameMapper.Map ( AssetLoaderContext  assetLoaderContext,
ModelNamingData  data,
IModel  model,
string  readerName 
)
virtual

Returns a final GameObject name based on the input Model information.

If you want to use the default TriLib GameObject naming, you can return null from this method.

Parameters
assetLoaderContextThe Asset Loader Context reference. Asset Loader Context contains the Model loading data.
dataThe original model information as name, class, id, and part number.
modelThe original model TriLib is loading.
readerNameThe name of the reader TriLib used to load the model.
Returns
The final GameObject name. Or null if the default TriLib GameObject naming has to be used.