Skip to content

Crash if using in callback button #1

@imtrobin

Description

@imtrobin

Hi, if I put startCoroutine in a button, it will crash due to the dispatchEvent, do you have solution?

    testBtn->addClickEventListener ([&] (cocos2d::Ref* pSender)
    {
		startCoroutine (this, TestCocosCoroutine());
    });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions