KKSceneEventDelegate Protocol Reference
Conforms to | NSObject |
Declared in | KKSceneEventDelegate.h |
Overview
Informal protocol defining the “update” methods an object can implement and receive when subscribed to updates in the scene.
Instance Methods
didChangeSize:
Called when scene changed its size, ie after rotating or changing views.
- (void)didChangeSize:(CGSize)oldSize
Parameters
- oldSize
The scene’s previous size. The scene.size property contains the new size.
Declared In
KKSceneEventDelegate.h
didEvaluateActions
Called after actions have been evaluated.
- (void)didEvaluateActions
Declared In
KKSceneEventDelegate.h
didMoveToView:
Called when scene will attach to a view.
- (void)didMoveToView:(SKView *)view
Parameters
- view
The view the scene is attached to. Identical to scene.view.
Declared In
KKSceneEventDelegate.h
didSimulatePhysics
Called after physics world has been simulated.
- (void)didSimulatePhysics
Declared In
KKSceneEventDelegate.h