Scripting API

Scripting API

FieldColor

Record struct in Abyss.Core, from Abyss.Core.

How a color is shown: ColorUsage(showAlpha, hdr), which a Rust field says as #[reflect(@ColorUsage(true, true))] on a field holding Bevy's Color.

public readonly record struct FieldColor

Remarks

A C# component holds no color yet, so only the engine says one (FieldHint.FromEngine).

Constructors

FieldColor

public FieldColor(bool ShowAlpha, bool Hdr)

How a color is shown: ColorUsage(showAlpha, hdr), which a Rust field says as #[reflect(@ColorUsage(true, true))] on a field holding Bevy's Color.

Parameters

  • ShowAlpha: Whether its alpha is shown and picked.
  • Hdr: Whether it is picked with an intensity, to take its light past 1.

A C# component holds no color yet, so only the engine says one (FieldHint.FromEngine).

Properties

ShowAlpha

public bool ShowAlpha { get; init; }

Whether its alpha is shown and picked.

Hdr

public bool Hdr { get; init; }

Whether it is picked with an intensity, to take its light past 1.