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

Represents a Mapper that finds humanoid Avatar bones by name-matching. More...

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

Public Member Functions

override Dictionary< BoneMapping, Transform > Map (AssetLoaderContext assetLoaderContext)
 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.

 
void AddMapping (HumanBodyBones humanBodyBones, HumanLimit humanLimit, params string[] boneNames)
 Adds a new mapping item, containing the humanoid bone type, the limits, and the list of names to look for to the query.
 
- Public Member Functions inherited from TriLibCore.Mappers.HumanoidAvatarMapper
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.
 

Public Attributes

StringComparisonMode stringComparisonMode
 String comparison mode to use on the mapping.
 
bool CaseInsensitive = true
 Is the string comparison case insensitive?
 
List< BoneMapping > BonesMapping
 The human bone to Unity bone relationship list.
 

Detailed Description

Represents a Mapper that finds humanoid Avatar bones by name-matching.

Member Function Documentation

◆ AddMapping()

void TriLibCore.Mappers.ByNameHumanoidAvatarMapper.AddMapping ( HumanBodyBones  humanBodyBones,
HumanLimit  humanLimit,
params string[]  boneNames 
)

Adds a new mapping item, containing the humanoid bone type, the limits, and the list of names to look for to the query.

Parameters
humanBodyBonesThe Human Body Bones (Humanoid Bone type).
humanLimitThe bone Human Limit.
boneNamesThe bones Transform names.

◆ Map()

override Dictionary< BoneMapping, Transform > TriLibCore.Mappers.ByNameHumanoidAvatarMapper.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 from TriLibCore.Mappers.HumanoidAvatarMapper.