Interface ITMPOffsetProvider
- Namespace
- TMPEffects.Parameters
Provides timing offsets for characters (to be used with e.g. Wave).
public interface ITMPOffsetProvider
Methods
GetMinMaxOffset(out float, out float, ITMPSegmentData, IAnimatorDataProvider, bool)
Get the minimum / maximum offset for the given segment.
void GetMinMaxOffset(out float min, out float max, ITMPSegmentData segmentData, IAnimatorDataProvider animatorData, bool ignoreAnimatorScaling = false)
Parameters
min
floatThe output parameter that will contain the minimum offset.
max
floatThe output parameter that will contain the maximum offset.
segmentData
ITMPSegmentDataThe relevant segment data.
animatorData
IAnimatorDataProviderThe relevant animator data.
ignoreAnimatorScaling
boolWhether to ignore the animator's scaling.
GetOffset(CharData, ITMPSegmentData, IAnimatorDataProvider, bool)
Get a timing offset for the given character.
float GetOffset(CharData cData, ITMPSegmentData segmentData, IAnimatorDataProvider animatorData, bool ignoreAnimatorScaling = false)
Parameters
cData
CharDataThe character to get an offset for.
segmentData
ITMPSegmentDataThe relevant segment data.
animatorData
IAnimatorDataProviderThe relevant animator data.
ignoreAnimatorScaling
boolWhether to ignore the animator's scaling.
Returns
StringToOffsetProvider(string, out ITMPOffsetProvider, ITMPKeywordDatabase)
public static bool StringToOffsetProvider(string str, out ITMPOffsetProvider result, ITMPKeywordDatabase keywords)
Parameters
str
stringresult
ITMPOffsetProviderkeywords
ITMPKeywordDatabase