Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

[newb] How to use Asset store VFX as a Button

Discussion in 'Image Effects' started by christopheraburns, Aug 27, 2021.

  1. christopheraburns

    christopheraburns

    Joined:
    Jul 30, 2019
    Posts:
    1
    I picked up a pack of VFX map markers from the Asset store. (https://assetstore.unity.com/packages/vfx/particles/map-track-markers-vfx-131762) I am adding them to a scene dynamically at runtime based off of coords retrieved from an API.

    I need to make these map markers "clickable", or at least detect a click event. I'm new to Unity and it seems the UnityEngine.UI namespace provides buttons and all the wiring needed to detect button events, but I want to keep my nice looking VFX map markers. Can I add an Onclick type event to these programmatically? Maybe I can use these markers as a "skin" to UI buttons? Looking for some advice from the crowd here.