Scripting API

Scripting API

LayerRun

Record in Abyss.Core, from Abyss.Core.

One layer of an animator, as its controller runs it.

public record LayerRun

Constructors

LayerRun

public LayerRun(int Current, ClipId Action, float ActionWeight, IReadOnlyList<StateRun> States)

One layer of an animator, as its controller runs it.

Parameters

  • Current: The state it plays, by its place; -1 for none.
  • Action: A clip played over it from code, or ClipId.None.
  • ActionWeight: How much of what is drawn that clip is.
  • States: Each of its states, in order.

Properties

Current

public int Current { get; init; }

The state it plays, by its place; -1 for none.

Action

public ClipId Action { get; init; }

A clip played over it from code, or ClipId.None.

ActionWeight

public float ActionWeight { get; init; }

How much of what is drawn that clip is.

States

public IReadOnlyList<StateRun> States { get; init; }

Each of its states, in order.

Weight

public float Weight { get; init; }

How much of it is laid over the layers under it: its weight times how far it is there; 1 for the first.

ActionPriority

public int ActionPriority { get; init; }

The priority of the clip played over it from code; 0 for none.