Back to Bevy

RelationshipAccessor improvements

release-content/migration-guides/relationship_accessor_improvements.md

0.18.1541 B
Original Source

RelationshipAccessor now has additional fields:

  • allow_self_referential that stores value of Relationship::ALLOW_SELF_REFERENTIAL
  • relationship_target for RelationshipAccessor::Relationship and relationship for RelationshipAccessor::RelationshipTarget which store ComponentId of the counterpart component.

ComponentDescriptor::new_with_layout now takes Option<RelationshipAccessorInitializer> instead of Option<RelationshipAccessor>, which requires providing a way to get ComponentId of the counterpart component.