Skip to content

Default value of cascadeOpacityEnabled should be YES #841

@agro1986

Description

@agro1986

Version: 3.1

I think cascadeOpacityEnabled of CCNode should be YES by default.

While animating a CCButton using CCActionFadeOut, I noticed that the button doesn't fade out because opacity isn't cascaded.

In the user's mindset, a button is a whole entity and we want to treat it as such when dealing with opacity.

In fact, I think in most cases user will want cascadeOpacityEnabled to be YES, not only limited to CCButton.

If there is a good reason why the default value is NO, please enlighten me. Thanks a lot.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions