-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
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
add SetUi to shared ui system #5092
base: master
Are you sure you want to change the base?
Conversation
if (!Resolve(ent, ref ent.Comp, false)) | ||
ent.Comp = AddComp<UserInterfaceComponent>(ent); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not use the normal EnsureComp?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if its cuz of the cursed Entity<> edge case, just do var comp = ensure(ent.Owner)
and access it that way
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ensurecomp wont check if uid == comp.Owner i think, doing resolve does
evil refactor removed it