Editar

Compartilhar via


SKConstraint.CreateRestriction(SKRange, SKRange) Method

Definition

Creates a constraint that restrains a node's position to a specified x-range and y-range.

[Foundation.Export("positionX:Y:")]
public static SpriteKit.SKConstraint CreateRestriction (SpriteKit.SKRange xRange, SpriteKit.SKRange yRange);
static member CreateRestriction : SpriteKit.SKRange * SpriteKit.SKRange -> SpriteKit.SKConstraint

Parameters

xRange
SKRange
yRange
SKRange

Returns

Attributes

Applies to