The problem happened again, and when trying to build, this was the error message:
Seems like the code was not generated correctly:
namespace Generated.AI.Planner.StateRepresentation
{
[Serializable]
public struct Location : ITrait, IBufferElementData, IEquatable<Location>
{
public const string FieldPosition = "Position";
public const string FieldForward = "Forward";
public const string FieldTransform = "Transform";
public Unity.Mathematics.float3 Position;
public Unity.Mathematics.float3 Forward;
public Transform;
...
}
Changing to public Transform Transform; made it work again, but only after setting the AI Planner as embedded package and reimporting all.
Not satisfied, because I was certain it was working when installed from the registry, I’ve removed the embedded package and reinstalled from the registry, deleted all the generated assets and cache, reimported all, reopened Unity, and it worked again.