Component:ColorToColorX

From Resonite Wiki
Revision as of 15:33, 11 November 2024 by 989onan (talk | contribs) (Add info)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Component image 
Color To Color X component as seen in the Scene Inspector

The ColorToColorX component uses data from a Color and a ColorProfile to drive the value of a ColorX field with optional write back.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
SourceColor direct RelayRef`1<IField`1<Color>> The color to convert into a ColorX for Target
SourceProfile direct RelayRef`1<IField`1<ColorProfile>> The color profile to use for the resulting Target
DefaultProfile ColorProfile the ColorProfile to use for Target if SourceProfile is empty.
Target field drive of ColorX
WriteBack Bool Whether to allow changes to the field specified by Target to go backwards and affect DefaultProfile or SourceProfile, and SourceColor.

Usage

Attach to a slot and provide SourceColor. Then provide either SourceProfile, or DefaultProfile. The component will then drive a ColorX field through Target.

Examples

See Also