logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class LayerEntry

    One layer declared on an Animator Controller, with its state machine flattened.

    Inheritance
    object
    LayerEntry
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Serenity.Editor.AnimationHub.Discovery
    Assembly: Serenity.AnimationHub.Editor.dll
    Syntax
    public sealed class LayerEntry

    Constructors

    LayerEntry(string, float, bool, IReadOnlyList<StateEntry>, IReadOnlyList<TransitionEntry>)

    Declaration
    public LayerEntry(string name, float defaultWeight, bool hasAvatarMask, IReadOnlyList<StateEntry> states, IReadOnlyList<TransitionEntry> transitions)
    Parameters
    Type Name Description
    string name
    float defaultWeight
    bool hasAvatarMask
    IReadOnlyList<StateEntry> states
    IReadOnlyList<TransitionEntry> transitions

    Properties

    DefaultWeight

    Declaration
    public float DefaultWeight { get; }
    Property Value
    Type Description
    float

    HasAvatarMask

    Declaration
    public bool HasAvatarMask { get; }
    Property Value
    Type Description
    bool

    Name

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    string

    States

    Declaration
    public IReadOnlyList<StateEntry> States { get; }
    Property Value
    Type Description
    IReadOnlyList<StateEntry>

    Every state in the layer's state machine, including states inside sub-state machines.

    Transitions

    Declaration
    public IReadOnlyList<TransitionEntry> Transitions { get; }
    Property Value
    Type Description
    IReadOnlyList<TransitionEntry>

    Every transition in the layer's state machine, including AnyState transitions and transitions inside sub-state machines.

    In this article
    © 2026 Serenity. All Rights Reserved