Answer the question
In order to leave comments, you need to log in
Vkontakte and unity3D, can anyone explain how to link apivk and unity?
Hello. I have a vk application created on unity.
Can anyone explain how to link apivk and unity? Did I do it right?
1) Added the following code to index.html:
function post()
{
VK.api("wall.post", {"message": "Ура! Оно работает!РАБОТАЕТ!"}, function (data) {
alert("Post ID:" + data.response.post_id);
});
}
function friends()
{
VK.callMethod("showInviteBox");
}
public void friends()
{
#if UNITY_WEBGL
Application.ExternalCall("friends");
#endif
}
. public void post()
{
#if UNITY_WEBGL
Application.ExternalCall("post");
#endif
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question