Skip to content

SKNode

Class | orca.SpriteKit | extends Node

Base 2D sprite node with transform and matrix

Overview

Properties

Property Type Description
Position vec2 Position of SKNode in space of SKScene
Size vec2 Size of SKNode. If not specified, defaults to the size of the associated sprite or animation frame
Anchor vec2 Anchor point for positioning

Messages

Render

Requests the sprite node to render itself using the provided view definition.

Field Type Description
ViewDef ViewDef The view definition for rendering