The code on the page are using the following elements which aren’t part of Entities 1.0, so code won’t run:
- [GenerateAuthoringComponent]
- Translation
Minor issues, really, but it’s probably worth rewriting in a getting started guide.
The code on the page are using the following elements which aren’t part of Entities 1.0, so code won’t run:
Minor issues, really, but it’s probably worth rewriting in a getting started guide.
Hey vildauget! We have a fair amount of out of date documentation yeah. There is an ongoing effort.
Thanks for the report!
That’s right. I have used TransformAspect Instead and Everything is ok, but the sample in Netcode guide not working I’m using Unity 2022.2.9f1. this error appears for me:
ArgumentException: System.ArgumentException: Unknown Type:{0}
All ComponentType must be known at compile time & be successfully registered. For generic components, each concrete type must be registered with [RegisterGenericComponentType].
This Exception was thrown from a function compiled with Burst, which has limited exception support.
I can’t overcome this error. How can I register Generics.
Hey OrientedPain! Please try to keep threads to a single topic. As for this issue, disabling burst may give you a better exception message. However, from what I understand, generics are not supported in Entities, nor Burst.
The error is telling you how to: You should use the RegisterGenericComponentType attribute. For example
I think there is also some docs in the Entities and a sample for that as well. There are plenty of example for this in Unity.Physics too