Class GraphicColorSlot
One collected UGUI Graphic slot under a registered UiColor target: its cached base color, the
value this applier itself last wrote, and whether it is currently driven by a delta entry.
Inherited Members
Namespace: Serenity.ProceduralAnimator.Infrastructure.Services
Assembly: Serenity.UnityProceduralAnimator.Infrastructure.dll
Syntax
public sealed class GraphicColorSlot
Remarks
A class, not a struct, for the same reason TransformTargetInfo is one: Apply(UiColorDelta)
mutates LastWritten/Driven/Base in place while a per-target list
is being walked from inside a dictionary enumeration — a struct re-assignment into that list would still be
safe (a List<T> indexer write does not invalidate a foreach over the OUTER dictionary),
but a reference type keeps every slot mutation a single field write with no indexer involved at all.
Constructors
GraphicColorSlot()
Declaration
public GraphicColorSlot()
Fields
Base
The base (undriven) color this slot restores to. Adopted from the Graphic's own live color the first time Apply(UiColorDelta) sees it differ from LastWritten — see that method's own remarks for the adopt-base rule.
Declaration
public Color Base
Field Value
| Type | Description |
|---|---|
| Color |
Driven
Whether a delta entry is currently driving this slot's color (as opposed to it sitting at Base).
Declaration
public bool Driven
Field Value
| Type | Description |
|---|---|
| bool |
Graphic
The collected Graphic. May go Unity-fake-null if destroyed after collection.
Declaration
public Graphic Graphic
Field Value
| Type | Description |
|---|---|
| Graphic |
LastWritten
The color value this applier itself last wrote to Graphic (or its color at collection time, before anything has been written). Compared against the Graphic's LIVE color on every Apply(UiColorDelta) call to detect an external write made since — see that method's own remarks.
Declaration
public Color LastWritten
Field Value
| Type | Description |
|---|---|
| Color |