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

Represents a Mapper that converts Game Objects bones hierarchies into Humanoid Avatars. More...

Inheritance diagram for TriLibCore.Mappers.HumanoidAvatarMapper:
TriLibCore.Mappers.ByNameHumanoidAvatarMapper

Public Member Functions

void PostSetup (AssetLoaderContext assetLoaderContext, Dictionary< BoneMapping, Transform > mapping)
 Changes Humanoid limbs position before creating the Avatar if the EnforceTPose or SampleBindPose options are set.
 
virtual Dictionary< BoneMapping, Transform > Map (AssetLoaderContext assetLoaderContext)
 Tries to map the loaded Game Object bones hierarchy into a Humanoid Avatar.
 

Detailed Description

Represents a Mapper that converts Game Objects bones hierarchies into Humanoid Avatars.

Member Function Documentation

◆ Map()

virtual Dictionary< BoneMapping, Transform > TriLibCore.Mappers.HumanoidAvatarMapper.Map ( AssetLoaderContext  assetLoaderContext)
virtual

Tries to map the loaded Game Object bones hierarchy into a Humanoid Avatar.

Parameters
assetLoaderContextThe Asset Loader Context reference. Asset Loader Context contains the Model loading data.
Returns
The resulting bone-mapping.

Reimplemented in TriLibCore.Mappers.ByNameHumanoidAvatarMapper.

◆ PostSetup()

void TriLibCore.Mappers.HumanoidAvatarMapper.PostSetup ( AssetLoaderContext  assetLoaderContext,
Dictionary< BoneMapping, Transform >  mapping 
)

Changes Humanoid limbs position before creating the Avatar if the EnforceTPose or SampleBindPose options are set.

Parameters
assetLoaderContextThe Asset Loader Context reference. Asset Loader Context contains the Model loading data.
mappingThe created Bone-Mapping.