Friends Sample Project Now Available

The Friends Sample Project is now available on the Asset Store.

>> Download it from the Asset Store <<

The Friends Sample Project demonstrates how the Friends service can be typically implemented.

The sample project comprises a basic user interface that enables users to interact with the Friends service and carry out various action such as:

  • Send / Receive a friend request
  • Accept / Decline a friend request
  • Block / Unblock a player
  • View your Friend list
  • View your Requests list
  • View your Block list
  • Remove a friend
  • Set your Presence status

If you’re wondering which Render Pipeline it’s compatible with, guess what? It works with all of them! We’re talking Built-in, URP, and HDRP! Keep in mind you’ll want to be using Unity 2021.3.8 or later.

While this sample is a valuable educational resource, you can also drag and drop it directly into your project.

Check out the documentation for more information.

2 Likes

I have issue when build iOS, android platform with friend system:
Building Library/Bee/artifacts/Android/d8kzr/fpz4_es.Friends.o failed with output:
~/Library/Bee/artifacts/Android/il2cppOutput/cpp/Unity.Services.Friends.cpp(14699,61): error: cast from pointer to smaller type ‘int32_t’ (aka ‘int’) loses information
bool L_15 = il2cpp_codegen_enum_has_flag((int32_t)L_13, (int32_t)L_14);
^~~~~~~~~~~~~
1 error generated.
UnityEngine.GUIUtility: ProcessEvent (int,intptr,bool&) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)