We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using the EntityCommandRecorder to record setting components on the world is possible by API but broken, as it produces garbage.
EntityCommandRecorder
Reproduction:
class SomeSystem { public record struct Data(Entity entity, int value); public static void Main(string[] args) { var world = new World(); var entity = world.CreateEntity(); var recorder = new EntityCommandRecorder(1024); recorder.Record(entity).Set(new Data(entity, 42)); recorder.Record(world).Set(new Data(entity, 42)); recorder.Execute(); var data = entity.Get<Data>(); Console.WriteLine("From Entity"); Console.WriteLine("Entity is " + (entity == data.entity ? "correct" : "broken")); Console.WriteLine("Value is " + data.value); data = world.Get<Data>(); Console.WriteLine("\nFrom World"); Console.WriteLine("Entity is " + (entity == data.entity ? "correct" : "broken")); Console.WriteLine("Value is " + data.value); } }
The text was updated successfully, but these errors were encountered:
gahhh thanks for reporting, a bad copy/past when I added this feature >_<
Sorry, something went wrong.
042222a
No branches or pull requests
Using the
EntityCommandRecorder
to record setting components on the world is possible by API but broken, as it produces garbage.Reproduction:
The text was updated successfully, but these errors were encountered: