我的演员是Label
。当我通过名称获得它时,我没有找到setText(...);
方法。
我用了:
stage.getRoot().findActor("name"). // setText not exist
如何找到Label
演员
在使用
之前可能需要转换为Label:Label labelActor = (Label) stage.getRoot().findActor("name");
labelActor.setText("abc");