Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Center Toggle in Canvas with 1920x1080 hit area

Discussion in 'UGUI & TextMesh Pro' started by eco_bach, Mar 30, 2017.

  1. eco_bach

    eco_bach

    Joined:
    Jul 8, 2013
    Posts:
    1,601
    Hi
    Need to create a 'Play' toggle over a video so that when a user clicks the video area the video pauses and they see a 'Play' icon.

    How do i create a Toggle so that it centers in my Canvas (or UIPanel)?
    How do I create my Toggle with a transparent 1920x1080 hit area(same size as my video)?
     
  2. Zonlib

    Zonlib

    Joined:
    Apr 15, 2014
    Posts:
    39
    This is not too difficult. I'm not good at word expressing so I recorded a short video on how to do it

     
  3. eco_bach

    eco_bach

    Joined:
    Jul 8, 2013
    Posts:
    1,601
    Thanks for sharing