You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well this kinda makes sense. It creates a buffer entity which does not exist yet (in the world, since its buffered)... and e.Reference() creates a reference to it, which is non existing and thus throws an exception.
Right, but I think it good to have some asserts or debug mode errors that help to find out what problem is. Because it is not obvious that method that exists in class cannot be used in that situation.
I also wanted to ask how to do it right in that case. I create entity with command buffer and I need to save reference for it. It there some right approach to do it? Like a pattern probably.
var cmd = new CommandBuffer();
var e = cmd.Create(new ComponentType[..]);
var er = e.Reference(); // Cause out of bounds error
The text was updated successfully, but these errors were encountered: