Skip to content

How can show UIView and get event for UIButton #4

@yogendragirase55

Description

@yogendragirase55

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
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions