SKConstraint.CreateRestriction(SKRange, SKRange) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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