|
|
|
|
@ -53,18 +53,21 @@ namespace AZ
|
|
|
|
|
->Attribute(AZ::Edit::Attributes::AppearsInAddComponentMenu, AZ_CRC("Game", 0x232b318c))
|
|
|
|
|
->Attribute(AZ::Edit::Attributes::AutoExpand, true)
|
|
|
|
|
->Attribute(AZ::Edit::Attributes::PrimaryAssetType, AZ::AzTypeInfo<RPI::ModelAsset>::Uuid())
|
|
|
|
|
->ClassElement(AZ::Edit::ClassElements::Group, "Probe Spacing (meters between probes)")
|
|
|
|
|
->ClassElement(AZ::Edit::ClassElements::Group, "Probe Spacing")
|
|
|
|
|
->Attribute(AZ::Edit::Attributes::AutoExpand, true)
|
|
|
|
|
->DataElement(AZ::Edit::UIHandlers::Default, &EditorDiffuseProbeGridComponent::m_probeSpacingX, "X", "Probe spacing on the X-axis, in meters")
|
|
|
|
|
->Attribute(AZ::Edit::Attributes::Min, 0.0f)
|
|
|
|
|
->DataElement(AZ::Edit::UIHandlers::Default, &EditorDiffuseProbeGridComponent::m_probeSpacingX, "X-Axis", "Meters between probes on the X-axis")
|
|
|
|
|
->Attribute(AZ::Edit::Attributes::Min, 0.1f)
|
|
|
|
|
->Attribute(AZ::Edit::Attributes::Suffix, " meters")
|
|
|
|
|
->Attribute(AZ::Edit::Attributes::ChangeValidate, &EditorDiffuseProbeGridComponent::OnProbeSpacingValidateX)
|
|
|
|
|
->Attribute(AZ::Edit::Attributes::ChangeNotify, &EditorDiffuseProbeGridComponent::OnProbeSpacingChanged)
|
|
|
|
|
->DataElement(AZ::Edit::UIHandlers::Default, &EditorDiffuseProbeGridComponent::m_probeSpacingY, "Y", "Probe spacing on the Y-axis, in meters")
|
|
|
|
|
->Attribute(AZ::Edit::Attributes::Min, 0.0f)
|
|
|
|
|
->DataElement(AZ::Edit::UIHandlers::Default, &EditorDiffuseProbeGridComponent::m_probeSpacingY, "Y-Axis", "Meters between probes on the Y-axis")
|
|
|
|
|
->Attribute(AZ::Edit::Attributes::Min, 0.1f)
|
|
|
|
|
->Attribute(AZ::Edit::Attributes::Suffix, " meters")
|
|
|
|
|
->Attribute(AZ::Edit::Attributes::ChangeValidate, &EditorDiffuseProbeGridComponent::OnProbeSpacingValidateY)
|
|
|
|
|
->Attribute(AZ::Edit::Attributes::ChangeNotify, &EditorDiffuseProbeGridComponent::OnProbeSpacingChanged)
|
|
|
|
|
->DataElement(AZ::Edit::UIHandlers::Default, &EditorDiffuseProbeGridComponent::m_probeSpacingZ, "Z", "Probe spacing on the Z-axis, in meters")
|
|
|
|
|
->Attribute(AZ::Edit::Attributes::Min, 0.0f)
|
|
|
|
|
->DataElement(AZ::Edit::UIHandlers::Default, &EditorDiffuseProbeGridComponent::m_probeSpacingZ, "Z-Axis", "Meters between probes on the Z-axis")
|
|
|
|
|
->Attribute(AZ::Edit::Attributes::Min, 0.1f)
|
|
|
|
|
->Attribute(AZ::Edit::Attributes::Suffix, " meters")
|
|
|
|
|
->Attribute(AZ::Edit::Attributes::ChangeValidate, &EditorDiffuseProbeGridComponent::OnProbeSpacingValidateZ)
|
|
|
|
|
->Attribute(AZ::Edit::Attributes::ChangeNotify, &EditorDiffuseProbeGridComponent::OnProbeSpacingChanged)
|
|
|
|
|
->ClassElement(AZ::Edit::ClassElements::Group, "Grid Settings")
|
|
|
|
|
|