Skip to content

Provides a CCNode type which can be used for clipping the visible area of children

Notifications You must be signed in to change notification settings

NoodlFroot/ClippingNode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ClippingNode

Provides a CCNode type [CCScissorNode] which can be used for clipping the visible area of children

This has been sourced from:

Usage

CGRect menuBoundaryRect = CGRectMake(x, y, width, height);
CCScissorNode *clipNode = [CCScissorNode scissorNodeWithRect:menuBoundaryRect];
[clipNode addChild:menu];
[menu fixPosition];
[self addChild:clipNode];

Example

Modification of the default project to add a clipping region to the HelloWorld test scene:

https://github.com/NoodlFroot/Cocos2d-v3-ScissorNode-Test

About

Provides a CCNode type which can be used for clipping the visible area of children

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 100.0%