[GenerateAuthoringComponent] on 0.17.0-preview.41 does not support ISharedComponentData anymore
I can replicate 2 different error msgs even.
ArmySharedData.cs(13,9): error ArmySharedData.cs(13,9): error DC3003: ArmySharedData has the [GenerateAuthoringComponent] attribute, and must therefore implement either the IComponentData interface or the IBufferElementData interface.
for:
[Serializable]
[GenerateAuthoringComponent]
public struct ArmySharedData : ISharedComponentData, IEquatable<ArmySharedData>
{
public int FactionId;
public bool Equals(ArmySharedData other)
{
return FactionId == other.FactionId;
}
public override bool Equals(object obj)
{
return obj is ArmySharedData other && Equals(other);
}
public override int GetHashCode()
{
return FactionId;
}
}
and:
(0,0): error error DC3003: ArmySharedData has the [GenerateAuthoringComponent] attribute, and must therefore implement either the IComponentData interface or the IBufferElementData interface.
for:
[Serializable]
[GenerateAuthoringComponent]
public struct ArmySharedData : ISharedComponentData
{
public int FactionId;
}
This seems to be a regression since it is not mentioned in the changelogs.