aws / lumberyard

Amazon Lumberyard is a free AAA game engine deeply integrated with AWS and Twitch – with full source.
Other
2.02k stars 539 forks source link

Add alpha channel attribute to color property type #518

Open yuriy0 opened 3 years ago

yuriy0 commented 3 years ago

Reflected color properties in the editor currently don't allow you to pick the alpha channel.

This change adds an attribute which can be applied to AZ::Color DataElements in the edit context which enables the alpha channel as follows:

...
                   ->DataElement(0, &MyClass::m_colour, "Some Color Value", "")
                   ->Attribute("AlphaChannel", true)
...

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

AMZN-puvvadar commented 3 years ago

Hi @yuriy0 ,

Thanks for the submission. We'll take a look at this enhancement internally.