docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Community

    Contains functions and properties related to the gaming community.

    Inheritance
    object
    JsObject
    Community
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Meta.InstantGames
    Assembly: Unity.Meta.InstantGames.Sdk.dll
    Syntax
    public class Community : JsObject

    Constructors

    Community()

    Construct an instance of Community

    Declaration
    public Community()

    Methods

    CanFollowOfficialPageAsync()

    Checks if a user can follow the official game page. Exceptions: INVALID_OPERATION

    Declaration
    public WebTask<bool> CanFollowOfficialPageAsync()
    Returns
    Type Description
    WebTask<bool>

    A WebTask<T> containing a boolean value that is true if the user can follow the official game page, and false otherwise.

    CanJoinOfficialGroupAsync()

    Checks if a user can join the official game group. Exceptions: INVALID_OPERATION

    Declaration
    public WebTask<bool> CanJoinOfficialGroupAsync()
    Returns
    Type Description
    WebTask<bool>

    A WebTask<T> containing a boolean value that is true if the user can join the official game group, and false otherwise.

    FollowOfficialPageAsync()

    Renders an overlay with a call to action to the follow official page. Exceptions: NETWORK_FAILURE, INVALID_OPERATION, PAGE_NOT_LINKED

    Declaration
    public WebTask FollowOfficialPageAsync()
    Returns
    Type Description
    WebTask

    A WebTask that resolves when the user has successfully followed the official game page.

    JoinOfficialGroupAsync()

    Renders an overlay with a call to action to join official group. Exceptions: NETWORK_FAILURE, INVALID_OPERATION, GROUP_NOT_LINKED

    Declaration
    public WebTask JoinOfficialGroupAsync()
    Returns
    Type Description
    WebTask

    A WebTask that resolves when the user has successfully joined the official game group.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)