-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Can we pass UIView below code . currently you have convert UIView to image. I need to pass UIView and get button events. How is it possible ?
func view(_ view: ARSKView, nodeFor anchor: ARAnchor) -> SKNode? {
// Create and configure a node for the anchor added to the view's session.
let annots = annotations.filter {
$0.identifier! == anchor.identifier
}
if annots.count > 0 {
let annot = annots.first
let image = annot?.getTooltipImage()
let tooltip = SKTexture(image: image!)
let sprite = SKSpriteNode(texture: tooltip)
sprite.name = "poi"
return sprite
}
return nil
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels