3.x子节点的Sprite组件禁用后,子节点的透明度不会随父节点改变


上图这是禁用前
下面两图是禁用后,label节点的透明度就没有随最外层Node节点改变

bug331_2.zip (1.3 MB)

你好,用你的 demo 测试,3.3.x 已修复;


https://github.com/cocos-creator/engine/pull/9049
https://github.com/cocos-creator/engine/pull/9057

ps: 由于是在 3.3 的基础上进行的修复,不保证可以直接合并在之前的所有版本上;

可是我在3.3.1上还是会出现这个问题啊,而且demo是用3.3.1制作的

你提供的 demo 是3.1.1的

好的,晚点我看下

  • 当使用Tween对node.active跟uiopacity在同一帧设置时,Sprite不显示

      - creator版本 3.3.0
    
      ```
    
      let dt = 0.25;
    
      this.n_sp.active = false;
    
      tween(this.n_sp)
    
      .delay(dt)
    
      .call(() => {
    
          this.n_sp.active = true;
    
      })
    
      .start();
    
      let uiOpacity_sp: UIOpacity = this.n_sp.getComponent(UIOpacity)!;
    
      if (uiOpacity_sp) {
    
          uiOpacity_sp.opacity = 0;
    
          tween(uiOpacity_sp)
    
          .delay(dt)
    
          .to(0.5, {opacity: 255})
    
          .start();
    
      }
    
      ```