Skip to content

为DanmakuCell新增重绘接口

Compare
Choose a tag to compare
@qyz777 qyz777 released this 12 Mar 13:56
· 13 commits to master since this release

有issue提问到如何重新绘制弹幕,其实只需调用DanmakuCell的layer.setNeedsDisplay()方法即可。为了减少开发成本,为DanmakuCell新增了一个重绘接口,后续重新绘制弹幕时直接使用如下调用即可:

danmaku.redraw()