logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class AnimationClipBindingLabels

    Maps a curve binding's raw propertyName (as Unity persists it, e.g. "m_LocalPosition.x" or "blendShape.Smile") to a human-readable group and axis for display. Pure string mapping, no Unity dependency beyond the plain string in, AnimationClipBindingLabels.Label out contract — every input is a value already read off a real binding elsewhere, so this type never needs to touch an asset itself. The curve-name normalization lesson from ModelClipCreatorTests is the source of the exact strings this maps from: Unity persists localScale.x as m_LocalScale.x, and a rotation curve as localEulerAnglesRaw.*.

    Inheritance
    object
    AnimationClipBindingLabels
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Editor.AnimationHub.Engine
    Assembly: Serenity.AnimationHub.Editor.dll
    Syntax
    public static class AnimationClipBindingLabels

    Fields

    ActiveGroup

    Declaration
    public const string ActiveGroup = "Active"
    Field Value
    Type Description
    string

    BlendShapesGroup

    Declaration
    public const string BlendShapesGroup = "Blend Shapes"
    Field Value
    Type Description
    string

    PositionGroup

    Declaration
    public const string PositionGroup = "Position"
    Field Value
    Type Description
    string

    RotationGroup

    Declaration
    public const string RotationGroup = "Rotation"
    Field Value
    Type Description
    string

    ScaleGroup

    Declaration
    public const string ScaleGroup = "Scale"
    Field Value
    Type Description
    string

    Methods

    Describe(string)

    Maps a raw curve-binding property name to its display label. Never throws — an unrecognized name falls back to itself as the group, with no axis.

    Declaration
    public static AnimationClipBindingLabels.Label Describe(string propertyName)
    Parameters
    Type Name Description
    string propertyName
    Returns
    Type Description
    AnimationClipBindingLabels.Label

    GroupSortKey(string)

    Sort key placing PositionGroup, RotationGroup and ScaleGroup first, in that order, then every other group alphabetically after them.

    Declaration
    public static string GroupSortKey(string group)
    Parameters
    Type Name Description
    string group
    Returns
    Type Description
    string
    In this article
    © 2026 Serenity. All Rights Reserved