コード例 #1
0
    void RegisterFacebookSharePlugin()
    {
        var fbResult = GetSocial.RegisterInviteChannelPlugin(InviteChannelIds.Facebook,
                                                             new FacebookSharePlugin());

        if (fbResult)
        {
            _console.LogD("Registered Facebook share plugin.");
        }
        else
        {
            _console.LogE("Failed to register Facebook share plugin.");
        }
    }
コード例 #2
0
    public Texture2D image; // works only on uncompressed, non-HDR texture formats. You must enable the texture's Read/Write Enabled flag in the Texture Import Settings.

    private void Start()
    {
        GetSocial.RegisterInviteChannelPlugin(InviteChannelIds.Facebook, new FacebookSharePlugin());
    }