cafe-sdk-unity
cafe-sdk-unity copied to clipboard
widget disappeared after 'sdk stop'
I use these code in my unity sample: `using UnityEngine; using System.Collections;
public class NaverSample : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
public void OnClick(GroupScript gs)
{
GLink.sharedInstance().startWidget();
GLink.sharedInstance().setShowWidgetWhenUnloadSDK(true);
}
}`
when I call the function 'OnClick', the float button widget displayed. But the widget will disappear when I tap 'X' button. Just see the gif picture(and full log, Unity setting). //----------------------------------------------------------------------- Waiting for you apply ,Thank you!
screen record
log file fulllog.log.txt
Unity settings
@githubsdk Widget appears when the collapse button is tapped. Not X Button
Finally , I use this as my solution .
void OnSDKStopEventCallbackFunction(){
GLink.sharedInstance().startWidget();
}