Class SceneOffsetTypePowerEnum
- Namespace
- TMPEffects.Parameters
[Serializable]
public class SceneOffsetTypePowerEnum : PowerEnum<TMPParameterTypes.OffsetType, TMPSceneOffsetProvider>, IEquatable<SceneOffsetTypePowerEnum>, ITMPOffsetProvider
- Inheritance
-
SceneOffsetTypePowerEnum
- Implements
- Inherited Members
Constructors
SceneOffsetTypePowerEnum()
public SceneOffsetTypePowerEnum()
SceneOffsetTypePowerEnum(OffsetType)
public SceneOffsetTypePowerEnum(TMPParameterTypes.OffsetType offsetType)
Parameters
offsetType
TMPParameterTypes.OffsetType
SceneOffsetTypePowerEnum(OffsetType, TMPSceneOffsetProvider)
public SceneOffsetTypePowerEnum(TMPParameterTypes.OffsetType offsetType, TMPSceneOffsetProvider customOffsetProvider)
Parameters
offsetType
TMPParameterTypes.OffsetTypecustomOffsetProvider
TMPSceneOffsetProvider
SceneOffsetTypePowerEnum(OffsetType, TMPSceneOffsetProvider, bool)
public SceneOffsetTypePowerEnum(TMPParameterTypes.OffsetType offsetType, TMPSceneOffsetProvider customOffsetProvider, bool useCustom)
Parameters
offsetType
TMPParameterTypes.OffsetTypecustomOffsetProvider
TMPSceneOffsetProvideruseCustom
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(SceneOffsetTypePowerEnum)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(SceneOffsetTypePowerEnum other)
Parameters
other
SceneOffsetTypePowerEnumAn 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.