Fixed file saving path for BehaviorClass generation + more node updates

Signed-off-by: lsemp3d <58790905+lsemp3d@users.noreply.github.com>
This commit is contained in:
lsemp3d
2021-11-18 16:23:55 -08:00
parent a0ca98238f
commit 0ecfb1b557
3 changed files with 145 additions and 2 deletions
@@ -0,0 +1,141 @@
{
"entries": [
{
"key": "AzFramework::SurfaceData::SurfacePoint",
"context": "BehaviorClass",
"variant": "",
"details": {
"name": "Surface Point",
"category": "Surface Data"
},
"methods": [
{
"key": "Getposition",
"details": {
"name": "Get Position"
},
"params": [
{
"typeid": "{331A3D0E-BB1D-47BF-96A2-249FAA0D720D}",
"details": {
"name": "Surface Point"
}
}
],
"results": [
{
"typeid": "{8379EB7D-01FA-4538-B64B-A6543B4BE73D}",
"details": {
"name": "Position"
}
}
]
},
{
"key": "Setposition",
"details": {
"name": "Set Position"
},
"params": [
{
"typeid": "{331A3D0E-BB1D-47BF-96A2-249FAA0D720D}",
"details": {
"name": "Surface Point"
}
},
{
"typeid": "{8379EB7D-01FA-4538-B64B-A6543B4BE73D}",
"details": {
"name": "Position"
}
}
]
},
{
"key": "Getnormal",
"details": {
"name": "Get Normal"
},
"params": [
{
"typeid": "{331A3D0E-BB1D-47BF-96A2-249FAA0D720D}",
"details": {
"name": "Surface Point"
}
}
],
"results": [
{
"typeid": "{8379EB7D-01FA-4538-B64B-A6543B4BE73D}",
"details": {
"name": "Normal"
}
}
]
},
{
"key": "Setnormal",
"details": {
"name": "Set Normal"
},
"params": [
{
"typeid": "{331A3D0E-BB1D-47BF-96A2-249FAA0D720D}",
"details": {
"name": "Surface Point"
}
},
{
"typeid": "{8379EB7D-01FA-4538-B64B-A6543B4BE73D}",
"details": {
"name": "Normal"
}
}
]
},
{
"key": "GetsurfaceTags",
"details": {
"name": "Get Surface Tags"
},
"params": [
{
"typeid": "{331A3D0E-BB1D-47BF-96A2-249FAA0D720D}",
"details": {
"name": "Surface Point"
}
}
],
"results": [
{
"typeid": "{8F60B4D4-06F0-577C-AFB9-ECBFA7B66D4E}",
"details": {
"name": "Surface Tags"
}
}
]
},
{
"key": "SetsurfaceTags",
"details": {
"name": "Set Surface Tags"
},
"params": [
{
"typeid": "{331A3D0E-BB1D-47BF-96A2-249FAA0D720D}",
"details": {
"name": "Surface Point"
}
},
{
"typeid": "{8F60B4D4-06F0-577C-AFB9-ECBFA7B66D4E}",
"details": {
"name": "Surface Tags"
}
}
]
}
]
}
]
}
@@ -5,7 +5,8 @@
"context": "BehaviorClass",
"variant": "",
"details": {
"name": "Surface Tag Weight"
"name": "Surface Tag Weight",
"category": "Surface Data"
},
"methods": [
{
@@ -327,7 +327,8 @@ namespace ScriptCanvasEditorTools
translationRoot.m_entries.push_back(entry);
AZStd::string fileName = AZStd::string::format("Classes/%s", className.c_str());
AZStd::string sanitizedFilename = GraphCanvas::TranslationKey::Sanitize(className);
AZStd::string fileName = AZStd::string::format("Classes/%s", sanitizedFilename.c_str());
SaveJSONData(fileName, translationRoot);