CocosSharp.CCSpriteFrame Class
A has:

See Also: CCSpriteFrame Members

Syntax

public class CCSpriteFrame

Remarks

You can modify the frame of a CocosSharp.CCSprite by doing:

CocosSharp.CCSprite

CocosSharp.CCSpriteFrame *frame = SpriteFrame::frameWithTexture(texture, rect, offset); sprite->setDisplayFrame(frame);

CocosSharp.CCSpriteFrame texture: A Texture2D that will be used by the Sprite texture: A Texture2D that will be used by the Sprite rectangle: A rectangle of the texture rectangle: A rectangle of the texture

Requirements

Namespace: CocosSharp
Assembly: CocosSharp (in CocosSharp.dll)