編集

次の方法で共有


SKTileMapNode.AnchorPoint Property

Definition

A CGPoint whose values, in the range [0..1] specify where, in the texture, the Frame is anchored.

public virtual CoreGraphics.CGPoint AnchorPoint { [Foundation.Export("anchorPoint", ObjCRuntime.ArgumentSemantic.UnsafeUnretained)] get; [Foundation.Export("setAnchorPoint:", ObjCRuntime.ArgumentSemantic.UnsafeUnretained)] set; }
member this.AnchorPoint : CoreGraphics.CGPoint with get, set

Property Value

The default value is [0.5, 0.5], anchoring the frame to the center of the texture.

Attributes

Remarks

The major use for this property is to change the point around which a tile is rotated. The default value of [0.5, 0.5] indicates the center of the texture.

Applies to