When I finished part 5, I noticed that the console printed the fallback name of "Unknown Entity" for all enemy npc's.
The function in entity.gd called get_entity_name() is returning a property called _definition.name but I had to change it to _definition.resource_name to get it to work.
func get_entity_name() -> String:
return _definition.resource_name
This is a super minor bug, and it could be due to my project's settings, or the Godot version on my machine, but figured I'd mention it in case anyone runs into this as well.
If it helps, I am using Godot v4.4.1.stable.official [49a5bc7b6]
Thanks!
When I finished part 5, I noticed that the console printed the fallback name of
"Unknown Entity"for all enemy npc's.The function in
entity.gdcalledget_entity_name()is returning a property called_definition.namebut I had to change it to_definition.resource_nameto get it to work.This is a super minor bug, and it could be due to my project's settings, or the Godot version on my machine, but figured I'd mention it in case anyone runs into this as well.
If it helps, I am using Godot v4.4.1.stable.official [49a5bc7b6]
Thanks!