편집

다음을 통해 공유


ARSKViewDelegate_Extensions Class

Definition

Extension methods to the IARSKViewDelegate interface to support all the methods from the ARSKViewDelegate protocol.

public static class ARSKViewDelegate_Extensions
type ARSKViewDelegate_Extensions = class
Inheritance
ARSKViewDelegate_Extensions

Remarks

The extension methods for IARSKViewDelegate allow developers to treat instances of the interface as having all the optional methods of the original ARSKViewDelegate protocol. Since the interface only contains the required members, these extension methods allow developers to call the optional members of the protocol.

Methods

DidAddNode(IARSKViewDelegate, ARSKView, SKNode, ARAnchor)

Developers may override this method to react to the adding of a SKNode that corresponds to a new ARAnchor.

DidRemoveNode(IARSKViewDelegate, ARSKView, SKNode, ARAnchor)

Developers may override this method to react to the removal of node, which was removed after anchor was removed.

DidUpdateNode(IARSKViewDelegate, ARSKView, SKNode, ARAnchor)

This method is called shortly after node has been updated to reflect the current state of anchor.

GetNode(IARSKViewDelegate, ARSKView, ARAnchor)

Retrieves the SKNode corresponding to the specified anchor. If no corresponding node exists, returns null.

WillUpdateNode(IARSKViewDelegate, ARSKView, SKNode, ARAnchor)

This method is called shortly before the properties of node are updated to reflect the state of anchor.

Applies to