Scripting: FindEntityWithName and get script instance

+ Some C# UUID stuff
+ Added some Mono functions
+ ScriptEngine:
  + ID -> ScriptInstance map in ScriptEngine
  + GetManagedInstance

+ Fixed Scene not visible after loading a new scene
  + Renamed OnViewportResize to SetViewportSize for Scene and SceneRenderer
This commit is contained in:
Simon Lübeß
2023-07-17 20:27:18 +02:00
parent 66d66d3308
commit e8505f6bdb
16 changed files with 492 additions and 61 deletions
+6 -1
View File
@@ -99,7 +99,12 @@ public struct Vector2
{
return !(a == b);
}
public float Length()
{
return (float)System.Math.Sqrt(X * X + Y * Y);
}
public override int GetHashCode()
{
unchecked