Documentation

​
​

Development

User Acquisition

Monetization

Industry

Friends

Friends

Multiplayer
​
​
Friends
  • Overview
  • Get started
  • Concepts
    • Relationships
    • Friends
    • Friend list
    • Friend requests
    • Block list
    • Presence
    • Message
    • Profile
    • Events
  • Tutorials
  • Reference
  • Privacy and consent
  1. Welcome to Friends

Events

Understand the event system for tracking changes in the status and relationships of friends.
Read time 1 minute
Last updated 9 months ago

Most relationships don’t change often, but when there are changes, users want to know about them as soon as possible. The Friends SDK fetches all a user's relationships at startup, then keeps the list up-to-date using events.
The SDK sends events as soon as changes occur. User relationship changes that trigger an event include:
  • A friend updates their presence status.
  • The user adds a new relationship. A user creates a
    FRIEND_REQUEST
    relationship or a
    FRIEND_REQUEST
    is accepted creating a
    FRIEND
    relationship.
  • The user removes a relationship like a
    FRIEND_REQUEST
    , a
    FRIEND
    , or a
    BLOCK
    relationship.
You can attach callbacks to the following events within the
FriendsService
:

Parameter

Description

RelationshipAddedEvent invoked when a relationship involving the current user gets added.
RelationshipDeletedEvent invoked when a relationship involving the current user gets deleted.
PresenceUpdatedEvent invoked when the presence of a member associated with the current user updates their presence.
MessageReceivedEvent invoked when a user sends a message to the current user.

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.


    Report a problem with this page