Skip to content

Class: DewAnimationClip ​

  • Namespace: Global
  • Assembly: Dew.Core.dll
csharp
[HideMonoScript]
[DewResourceLink(ResourceLinkBy.Guid)]
[CreateAssetMenu(fileName = "New Dew Animation Clip", menuName = "Dew Animation Clip")]
public class DewAnimationClip : ScriptableObject, ILinkedByGuid

Fields ​

NameDeclarationDescription
entriespublic DewAnimationEntry[] entries
hideWeaponOnHeroespublic bool hideWeaponOnHeroes
onlyUpperBodypublic bool onlyUpperBody
overrideWalk`[InfoBox("Override Walk cannot be Full if animating only upper body!", InfoMessageType.Error, null, VisibleIf = "@onlyUpperBody && overrideWalk == DewAnimationClip.OverrideWalkBehavior.Full")]
public DewAnimationClip.OverrideWalkBehavior overrideWalk`
overrideWalkNormalizedDuration`[ShowIf("@overrideWalk != OverrideWalkBehavior.None", true)]
public float overrideWalkNormalizedDuration`

Properties ​

NameDeclarationDescription
resourceIdpublic string resourceId { get; set; }

Methods ​

GetEntry() ​

csharp
public DewAnimationEntry GetEntry()

Returns: DewAnimationEntry

GetEntry(int) ​

csharp
public DewAnimationEntry GetEntry(int index)

Parameters:

NameTypeDescription
indexint

Returns: DewAnimationEntry

GetEntry(float) ​

csharp
public DewAnimationEntry GetEntry(float value)

Parameters:

NameTypeDescription
valuefloat

Returns: DewAnimationEntry

GetEntryIndex() ​

csharp
public int GetEntryIndex()

Returns: int

GetEntryIndex(float, int) ​

csharp
public static int GetEntryIndex(float clipSelectValue, int entriesLength)

Parameters:

NameTypeDescription
clipSelectValuefloat
entriesLengthint

Returns: int

GetEntryIndex(float) ​

csharp
public int GetEntryIndex(float clipSelectValue)

Parameters:

NameTypeDescription
clipSelectValuefloat

Returns: int

Maintained by the Shape of Dreams Modding Community