Filter entities

This commit is contained in:
Simon Lübeß
2024-11-17 19:57:31 +01:00
parent 080861ed4a
commit e1e91089ca
2 changed files with 103 additions and 71 deletions
@@ -118,22 +118,6 @@ abstract class UltralightWindow
{
CopyToImmediateTexture();
CopyToBackBuffer();
if (Input.IsKeyPressing(Key.A))
{
ULString str = ulCreateString("window.updateEntities([])");
ULString exception = null;
ulViewEvaluateScript(_view, str, &exception);
if (exception != null && ulStringGetLength(exception) != 0)
{
StringView ex = StringView(ulStringGetData(exception), ulStringGetLength(exception));
Log.EngineLogger.Error($"Failed to evaluate script: {ex}");
}
ulDestroyString(str);
}
}
private void CreateTexture()