Class TMPOffsetProvider
- Namespace
- TMPEffects.Parameters
Provides timing offsets for characters (to be used with e.g. Wave).
public abstract class TMPOffsetProvider : ScriptableObject, ITMPOffsetProvider
- Inheritance
-
TMPOffsetProvider
- Implements
Methods
GetMinMaxOffset(out float, out float, ITMPSegmentData, IAnimatorDataProvider, bool)
Get the minimum / maximum offset for the given segment.
public abstract void GetMinMaxOffset(out float min, out float max, ITMPSegmentData segmentData, IAnimatorDataProvider animatorData, bool ignoreAnimatorScaling = false)
Parameters
minfloatThe output parameter that will contain the minimum offset.
maxfloatThe output parameter that will contain the maximum offset.
segmentDataITMPSegmentDataThe relevant segment data.
animatorDataIAnimatorDataProviderThe relevant animator data.
ignoreAnimatorScalingboolWhether to ignore the animator's scaling.
GetOffset(CharData, ITMPSegmentData, IAnimatorDataProvider, bool)
Get a timing offset for the given character.
public abstract float GetOffset(CharData cData, ITMPSegmentData segmentData, IAnimatorDataProvider animatorData, bool ignoreAnimatorScaling = false)
Parameters
cDataCharDataThe character to get an offset for.
segmentDataITMPSegmentDataThe relevant segment data.
animatorDataIAnimatorDataProviderThe relevant animator data.
ignoreAnimatorScalingboolWhether to ignore the animator's scaling.