Refactor Visual Script debugger apis to use bindings generator

This commit is contained in:
Wojtek Figat
2023-12-16 17:58:18 +01:00
parent c145042f52
commit 64e391df24
6 changed files with 122 additions and 251 deletions

View File

@@ -123,7 +123,7 @@ namespace FlaxEditor.Surface
BoxId = box.ID,
};
var script = ((Windows.Assets.VisualScriptWindow)box.Surface.Owner).Asset;
if (Editor.Internal_EvaluateVisualScriptLocal(Object.GetUnmanagedPtr(script), ref local))
if (Editor.EvaluateVisualScriptLocal(script, ref local))
{
text = $"{local.Value ?? string.Empty} ({local.ValueTypeName})";
return true;