Small script engine improvements

- Fixed script class name not visible in Component Editor
- Retain user assembly file system watcher (fixed deletion while handling events)
- Fixed crash when a scritp constains a List or Array (by ignoring them for now)
- Fixed Typo in Genericinst
- Scene: Invoke OnCreate for copied entity scripts
This commit is contained in:
Simon Lübeß
2023-10-28 21:48:43 +02:00
parent 909012f518
commit 38fc1f63b3
5 changed files with 53 additions and 28 deletions
@@ -541,7 +541,7 @@ namespace GlitchyEditor.EditWindows
StringView search = StringView();
char8* scriptLabel = scriptComponent.Instance?.ScriptClass.FullName.ToScopeCStr!() ?? "Select Script...";
char8* scriptLabel = scriptComponent.ScriptClassName.ToScopeCStr!() ?? "Select Script...";
if (ImGui.Button(scriptLabel))
ImGui.OpenPopup("SelectScript");
@@ -791,7 +791,6 @@ namespace GlitchyEditor.EditWindows
var value = field.GetData<bool>();
if (ImGui.Checkbox(fieldName.CStr(), &value))
field.SetData(value);
case .SByte:
var value = field.GetData<int8>();
if (ImGui.DragScalar(fieldName.CStr(), .S8, &value))