Improved generation and look up for BehaviorProperty and updates AWS node names

Signed-off-by: lsemp3d <58790905+lsemp3d@users.noreply.github.com>
This commit is contained in:
lsemp3d
2021-11-16 16:24:48 -08:00
parent f02d92e5d9
commit fabf61688d
11 changed files with 1065 additions and 58 deletions
@@ -859,10 +859,14 @@ namespace ScriptCanvasEditorTools
if (behaviorProperty->m_getter)
{
AZStd::string cleanName = behaviorProperty->m_name;
AZ::StringFunc::Replace(cleanName, "::Getter", "");
Method method;
auto methodName = behaviorProperty->m_getter->m_name;
method.m_key = behaviorProperty->m_name;
AZStd::string methodName = "Get";
methodName.append(cleanName);
method.m_key = methodName;
method.m_details.m_name = methodName;
method.m_details.m_tooltip = behaviorProperty->m_getter->m_debugDescription ? behaviorProperty->m_getter->m_debugDescription : "";
@@ -874,10 +878,15 @@ namespace ScriptCanvasEditorTools
if (behaviorProperty->m_setter)
{
AZStd::string cleanName = behaviorProperty->m_name;
AZ::StringFunc::Replace(cleanName, "::Setter", "");
Method method;
auto methodName = behaviorProperty->m_setter->m_name;
method.m_key = behaviorProperty->m_name;
AZStd::string methodName = "Set";
methodName.append(cleanName);
method.m_key = methodName;
method.m_details.m_name = methodName;
method.m_details.m_tooltip = behaviorProperty->m_setter->m_debugDescription ? behaviorProperty->m_getter->m_debugDescription : "";