Class SceneOffsetBundle
- Namespace
- TMPEffects.Parameters
Calculates offsets for characters (to be used with e.g. Wave).
[Serializable]
[TMPParameterBundle("SceneOffsetBundle")]
public class SceneOffsetBundle
- Inheritance
-
SceneOffsetBundle
- Inherited Members
Properties
Cache
Whether to cache offsets.
public bool Cache { get; set; }
Property Value
IgnoreAnimatorScaling
Whether to ignore animator scaling (for relevant offset types).
public bool IgnoreAnimatorScaling { get; }
Property Value
Provider
The ITMPOffsetProvider used to calculate offsets.
public ITMPOffsetProvider Provider { get; }
Property Value
Uniformity
The uniformity that should be applied to the offset.
public float Uniformity { get; }
Property Value
ZeroBasedOffset
Whether to zero base offset, i.e. whether to shift offsets so that the minimum offset is zero.
public bool ZeroBasedOffset { get; }
Property Value
Methods
ClearCache()
Clear the cached offsets (offsets will only be cached if Cache is true).
public void ClearCache()
GetOffset(CharData, IAnimatorDataProvider, ITMPSegmentData)
Get the offset for the given CharData in the context of the given SegmentData.
Be aware that if Cache is true, this will cache offsets internally. You may clear the cache using ClearCache().
public float GetOffset(CharData cData, IAnimatorDataProvider animatorData, ITMPSegmentData segmentData = null)
Parameters
cData
CharDataThe CharData to get the offset for.
animatorData
IAnimatorDataProviderData about the animating TMPAnimator.
segmentData
ITMPSegmentDataData about the contextual segment.
Returns
GetOffset(CharData, IAnimationContext)
Get the offset for the given CharData in the context of the given SegmentData.
Be aware that if Cache is true, this will cache offsets internally. You may clear the cache using ClearCache().
public float GetOffset(CharData cData, IAnimationContext context)
Parameters
cData
CharDataThe CharData to get the offset for.
context
IAnimationContextThe IAnimationContext of the animating TMPAnimator.