Shadows decals

This commit is contained in:
MaddoScientisto 2025-12-28 22:53:31 +01:00
commit 1dfce7802b
12 changed files with 5344 additions and 1520 deletions

View file

@ -23,7 +23,7 @@ public partial class EnemyMarker3D : PreviewMarker3D, IActivable
if (Engine.IsEditorHint())
{
//QueueRedraw();
this.Texture = _enemy.IconSprite;
this.Texture = _enemy?.IconSprite;
}
}
}
@ -76,7 +76,11 @@ public partial class EnemyMarker3D : PreviewMarker3D, IActivable
//SetSpriteAlpha(0.5f);
}
var asdf = props["asdf"].AsString();
GD.Print(asdf);
var scriptPath = props["resource_path"].AsString();
GD.Print(scriptPath);
if (!string.IsNullOrWhiteSpace(scriptPath))
{
Enemy = GD.Load<EnemyResource>(scriptPath);