Skip to content

Make Canvas work with TouchableEvents #6025

@Dusty-Sprinkles

Description

@Dusty-Sprinkles

Is your feature request related to a problem? Please describe.

Canvases implement ITouchable as you can plug them into TouchEventRelay but no matter what amount of tweaking you do, the Canvas component will not send touch events to the TouchableEvents Protoflux node.

Describe the solution you'd like

I would like if it was changed so that a Canvas had touch events for hovering/interacting with any part of it, as this would simplify creating in-canvas UI like pop-up menus that appear when you right click the canvas at the point that you clicked (see additional context)

Describe alternatives you've considered

  1. Turning the entire canvas into a button and using ButtonEvents
    • The problem with this is that it will either block or be blocked by other interactable elements on the canvas, and I ideally want to have interaction areas layered on top of this while still allowing the menu to be opened on any part of the canvas
  2. Slot searching for someone's laser to find where it is hitting and then detect if that is on the canvas

Additional Context

This is an image of the video player in a platform known as Open Cobalt, it had a context menu that would pop up on the video player when interacting with it to handle common video controls. I want to replicate this in resonite, but it isn't simple to do so because of the issues in this issue.
Image

Requesters

Venport/dustysprinkles

Metadata

Metadata

Assignees

No one assigned

    Labels

    New FeatureA new addition, whose complexity hasn't been evaluated yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions