zoukankan      html  css  js  c++  java
  • cocos js 3.8.1 clippingNode 不能被 ccui.ScrollView 或者ccui.Layout裁剪的bug

    clippingNode不能被ccui.ScrollView、ccui.ListView、ccui.Layout裁剪问题,只需要 设置scrollView ...的裁剪类型

    scrollView.setClippingType(ccui.Layout.CLIPPING_SCISSOR);

    注:这个方法的对象必须继承自ccui.Layout,对cc.ScrollView、cc.ListView等不起作用,并且此对象的锚点必须在左下角,否则裁剪会出bug,迷之bug。

  • 相关阅读:
    JUC并发工具包之Semaphore
    Linux命令
    uWSGI
    数据库 MySQL 练习
    c++
    c++ 初阶
    Git
    MySQl 和 Redis
    MySQL 查询
    MySQL 命令
  • 原文地址:https://www.cnblogs.com/pengyingh/p/6434296.html
Copyright © 2011-2022 走看看