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
offsetType
TMPParameterTypes.OffsetType
OffsetTypePowerEnum(OffsetType, TMPOffsetProvider)
public OffsetTypePowerEnum(TMPParameterTypes.OffsetType offsetType, TMPOffsetProvider customOffsetProvider)
Parameters
offsetType
TMPParameterTypes.OffsetTypecustomOffsetProvider
TMPOffsetProvider
OffsetTypePowerEnum(OffsetType, TMPOffsetProvider, bool)
public OffsetTypePowerEnum(TMPParameterTypes.OffsetType offsetType, TMPOffsetProvider customOffsetProvider, bool useCustom)
Parameters
offsetType
TMPParameterTypes.OffsetTypecustomOffsetProvider
TMPOffsetProvideruseCustom
bool
Methods
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj
objectThe 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
other
OffsetTypePowerEnumAn 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
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.
public 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.