GKObstacleGraph<NodeType> Constructors

Definition

Overloads

GKObstacleGraph<NodeType>(NSCoder)

A constructor that initializes the object from the data stored in the unarchiver object.

GKObstacleGraph<NodeType>(GKPolygonObstacle[], Single)

GKObstacleGraph<NodeType>(NSCoder)

A constructor that initializes the object from the data stored in the unarchiver object.

public GKObstacleGraph (Foundation.NSCoder coder);
new GameplayKit.GKObstacleGraph<'NodeType (requires 'NodeType :> GameplayKit.GKGraphNode2D)> : Foundation.NSCoder -> GameplayKit.GKObstacleGraph<'NodeType (requires 'NodeType :> GameplayKit.GKGraphNode2D)>

Parameters

coder
NSCoder

The unarchiver object.

Remarks

This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the NSCoding protocol.

If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type NSCoder and decorate it with the [Export("initWithCoder:"] attribute declaration.

The state of this object can also be serialized by using the companion method, EncodeTo.

Applies to

GKObstacleGraph<NodeType>(GKPolygonObstacle[], Single)

public GKObstacleGraph (GameplayKit.GKPolygonObstacle[] obstacles, float bufferRadius);
new GameplayKit.GKObstacleGraph<'NodeType (requires 'NodeType :> GameplayKit.GKGraphNode2D)> : GameplayKit.GKPolygonObstacle[] * single -> GameplayKit.GKObstacleGraph<'NodeType (requires 'NodeType :> GameplayKit.GKGraphNode2D)>

Parameters

obstacles
GKPolygonObstacle[]
bufferRadius
Single

Applies to