|Realtime|Bool| Whether this component should instantly update the value of the target field in <code>TargetField</code>
|Realtime|Bool| Whether this component should instantly update the value of the target field in <code>TargetField</code>
|TargetField|{{RootFieldType|RelayRef`1|[[Type:IField`1|IField`1]]<[[Type:ColorX|ColorX]]>}}|TypeAdv1=true| The color field this component is editing.
|TargetField|{{RootFieldType|RelayRef`1|[[Type:IField`1|IField`1]]<[[Type:ColorX|ColorX]]>}}|TypeAdv1=true| The color field this component is editing.
|_originalColor|ColorX| The original color value <code>TargetField</code>'s target field had before editing.
|_originalColor|ColorX| The original color value <code>TargetField</code>'s target field had before editing.
|_hue|Float| The current selected color hue.
|_hue|Float| The current selected color hue.
|_saturation|Float| The current selected color saturation.
|_saturation|Float| The current selected color saturation.
|_value|Float| The current selected color value.
|_value|Float| The current selected color value.
|_alpha|Float| The current selected color transparency.
|_alpha|Float| The current selected color transparency.
|_profile|ColorProfile| The current selected color profile.
|_profile|ColorProfile| The current selected color profile.
|_gain|Float| The current selected color gain.
|_gain|Float| The current selected color gain.
|_rSlider|'''[[Component:LegacySlider|LegacySlider]]'''|TypeAdv9=true| The slider to change the red of the color with.
|_rSlider|'''[[Component:LegacySlider|LegacySlider]]'''|TypeAdv9=true| The slider to change the red of the color with.
Line 21:
Line 21:
|_aSlider|'''[[Component:LegacySlider|LegacySlider]]'''|TypeAdv12=true| The slider to change the transparency/alpha of the color with.
|_aSlider|'''[[Component:LegacySlider|LegacySlider]]'''|TypeAdv12=true| The slider to change the transparency/alpha of the color with.
|_gainSlider|'''[[Component:LegacySlider|LegacySlider]]'''|TypeAdv13=true| The slider to change the gain of the color with.
|_gainSlider|'''[[Component:LegacySlider|LegacySlider]]'''|TypeAdv13=true| The slider to change the gain of the color with.
|_rValue|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv14=true| The field to drive with the current selected red value.
|_rValue|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv14=true| The field to drive with the current selected red value.
|_gValue|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv15=true| The field to drive with the current selected green value.
|_gValue|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv15=true| The field to drive with the current selected green value.
|_bValue|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv16=true| The field to drive with the current selected blue value.
|_bValue|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv16=true| The field to drive with the current selected blue value.
Line 30:
Line 30:
|_cancelButton|'''[[Component:LegacyButton|LegacyButton]]'''|TypeAdv21=true| The button that when pressed reverts the value of the targeted field in <code>TargetField</code> to <code>_originalColor</code> and closes the ui.
|_cancelButton|'''[[Component:LegacyButton|LegacyButton]]'''|TypeAdv21=true| The button that when pressed reverts the value of the targeted field in <code>TargetField</code> to <code>_originalColor</code> and closes the ui.
|OnCancelPressed:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Is called when the dialog is canceled.
|OnOKPressed:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Is called when "OK" is pressed.
|OnPickerTouched:[[Type:TouchEvent|TouchEvent]]|[[Type:TouchEvent|TouchEvent]]|true| Is called when the color triangle picker is clicked.
}}
}}
Latest revision as of 03:43, 7 April 2025
This article describes a feature marked as legacy—this usually means there's a newer, better alternative. Legacy features might not be removed but they will not be updated, and the team will not provide any support for them.
Component image
Legacy Color Dialog component as seen in the Scene Inspector
The LegacyColorDialog component is used in old Legacy content that was migrated and was used to pick colors for color fields. This component should not be used and should be replaced whenever possible.