Table of Contents

Class SceneOffsetTypePowerEnum

[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.OffsetType
customOffsetProvider TMPSceneOffsetProvider

SceneOffsetTypePowerEnum(OffsetType, TMPSceneOffsetProvider, bool)

public SceneOffsetTypePowerEnum(TMPParameterTypes.OffsetType offsetType, TMPSceneOffsetProvider customOffsetProvider, bool useCustom)

Parameters

offsetType TMPParameterTypes.OffsetType
customOffsetProvider TMPSceneOffsetProvider
useCustom bool

Methods

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(SceneOffsetTypePowerEnum)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(SceneOffsetTypePowerEnum other)

Parameters

other SceneOffsetTypePowerEnum

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

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 float

The output parameter that will contain the minimum offset.

max float

The output parameter that will contain the maximum offset.

segmentData ITMPSegmentData

The relevant segment data.

animatorData IAnimatorDataProvider

The relevant animator data.

ignoreAnimatorScaling bool

Whether 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 CharData

The character to get an offset for.

segmentData ITMPSegmentData

The relevant segment data.

animatorData IAnimatorDataProvider

The relevant animator data.

ignoreAnimatorScaling bool

Whether to ignore the animator's scaling.

Returns

float

A timing offset (to be used, for example, with Wave).