Class OffsetTypePowerEnum
- Namespace
- TMPEffects.Parameters
[Serializable]
public class OffsetTypePowerEnum : PowerEnum<TMPParameterTypes.OffsetType, TMPOffsetProvider>, IEquatable<OffsetTypePowerEnum>, ITMPOffsetProvider
- Inheritance
-
OffsetTypePowerEnum
- Implements
- Inherited Members
Constructors
OffsetTypePowerEnum()
public OffsetTypePowerEnum()
OffsetTypePowerEnum(OffsetType)
public OffsetTypePowerEnum(TMPParameterTypes.OffsetType offsetType)
Parameters
offsetTypeTMPParameterTypes.OffsetType
OffsetTypePowerEnum(OffsetType, TMPOffsetProvider)
public OffsetTypePowerEnum(TMPParameterTypes.OffsetType offsetType, TMPOffsetProvider customOffsetProvider)
Parameters
offsetTypeTMPParameterTypes.OffsetTypecustomOffsetProviderTMPOffsetProvider
OffsetTypePowerEnum(OffsetType, TMPOffsetProvider, bool)
public OffsetTypePowerEnum(TMPParameterTypes.OffsetType offsetType, TMPOffsetProvider customOffsetProvider, bool useCustom)
Parameters
offsetTypeTMPParameterTypes.OffsetTypecustomOffsetProviderTMPOffsetProvideruseCustombool
Methods
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
Equals(OffsetTypePowerEnum)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(OffsetTypePowerEnum other)
Parameters
otherOffsetTypePowerEnumAn object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetMinMaxOffset(out float, out float, ITMPSegmentData, IAnimatorDataProvider, bool)
Get the minimum / maximum offset for the given segment.
public 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 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.