You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create a new lua project using cocos2d-x 3.15 (old version has the same issue)
in the MainScene:onCreate() function, input the following code:
-----code begin------ add labellocalstr="Developer/CoreSimulator/Devices/2062FCB0-D48C-4EF6-9F79-183861FCE72E/data/Containers/Bundle/Application/18FB6F4E-51E2-49CE-9000-AE5D95AC4502/star-battleapp/src/app//Developer/CoreSimulator/Devices/2062FCB0-D48C-4EF6-9F79-183861FCE72E/data/Containers/Bundle/Application/A875FC8F-20A2-4FCD-B90E-D719DF26880A/star-battle.app"--str = "This is a short text" --works well for the short stringlocallable=cc.Label:createWithSystemFont(str, "Arial", 30)
:move(display.cx, display.cy+200)
:addTo(self)
localsize=lable:getContentSize()
print(size.width, size.height)
-----code end----
Result: nothing is shown up, and the size of the label is (0,0).
I see "cocos2d: Texture2D: Error uploading compressed texture level: 0 . glError: 0x0501" in Xcode log.
The text was updated successfully, but these errors were encountered:
Steps to Reproduce:
Result: nothing is shown up, and the size of the label is (0,0).
I see "cocos2d: Texture2D: Error uploading compressed texture level: 0 . glError: 0x0501" in Xcode log.
The text was updated successfully, but these errors were encountered: