naverz / zepeto-studio-kor

48 stars 8 forks source link

CancelInvoke Function does not work. #1142

Closed jhslee closed 2 years ago

jhslee commented 2 years ago

Please tell us the version of the ZEPETO World package. (You can check the version in Unity > Window > Package Manager.) 1.5.1

Please tell us which version of the ZEPETO app is currently installed. (You can check the version in ZEPETO App > MY > Settings > Version.) 3.14.2

What features were you trying to implement? Tried to call CancelInvoke on a method with a delay.

What problem did you encounter? Invoke call works, but the cancellation of said invocation does not work.

Please tell us your development environment. Mac OS Monteray 12.4 Unity 2020.3.9f1

Please attach the implemented code. If you have a screenshot, please attach it.


this.invokeButton.onClick.AddListener(() => { 
            console.log(`[InvokeTest:invokeButton]`);
            this.Invoke("DoSomething", this.delay); //Initial Invoke Call. 
        });

this.cancelInvoke1Button.onClick.AddListener(() => {
            console.log(`[InvokeTest:cancelInvoke1Button]`);
            this.CancelInvoke(); //Cancel Invocation does not work. 
});

this.cancelInvoke2Button.onClick.AddListener(() => {
            console.log(`[InvokeTest:cancelInvoke2Button]`);
            this.CancelInvoke("DoSomething"); //Cancel Invocation by name does not work. 
});

public DoSomething() {
        console.log(`[InvokeTest:DoSomething]`);
}

InvokeIssue_1.unitypackage.zip

Zepeto-TechEvangelist commented 2 years ago

다음 버전에서 수정 예정입니다. 감사합니다.

crash-k commented 2 years ago

Fixed in 1.8.0