SKConstraint.CreateXRestriction(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.
[Foundation.Export("positionX:")]
public static SpriteKit.SKConstraint CreateXRestriction (SpriteKit.SKRange range);
static member CreateXRestriction : SpriteKit.SKRange -> SpriteKit.SKConstraint
Parameters
- range
- SKRange
Returns
- Attributes