Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by Taxen0 · Feb 02, 2016 at 08:31 AM · uievent triggering

EventTrigger dont work as child of panel

I would like to get the new UI system to work but have encountered some strange behavior.

I have a UI element (image) with a attached EventTrigger set to fire a method on pointerDown, this "button" works fine when it is just below the canvas in the hierarchy but when I move it so it becomes a child of a Panel it stopped working.

So my question is: How can i get the EventTrigger to fire even if the object is a child of a panel?

Update: Here are some pictures of the hierarchy, canvas(ui), panel and image/button. I am using Unity 5.3.2. I'm sure there is something simple that I'm missing but I just cant find it.

image

issue.png (114.2 kB)
Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Taxen0 · Feb 03, 2016 at 10:35 PM 0
Share

Anyone have the answer, or can point me in the right direction? Would be much appreciated! :)

avatar image Taxen0 · Feb 06, 2016 at 07:04 PM 0
Share

Experimented some more but still have the same issue :(

avatar image Taxen0 · Feb 16, 2016 at 10:33 AM 0
Share

I still haven't found a solution to this, tried ticking and unticking different checkboxes but i cant get this to work.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by itsharshdeep · Feb 04, 2016 at 04:54 AM

Hi

First of all check that is your Hierarchy contains the EventSystem ?

Then I did the same as you mentioned and it is working fine. So please check you hierarchy.

I'm putting the screenshot. May be that help you a little

alt text


screen-shot-2016-02-04-at-102341-am.png (133.0 kB)
Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Taxen0 · Feb 04, 2016 at 12:35 PM 0
Share

Thank you, however as far as I can tell I have it set up the same way as you do. Will take a closer look tonight and maybe upload a screenshot.

avatar image itsharshdeep Taxen0 · Feb 04, 2016 at 02:28 PM 0
Share

Sure ..

Because In my scene all things are working fine .. I m using 5.2.0f3

avatar image Taxen0 itsharshdeep · Feb 05, 2016 at 12:29 PM 0
Share

I just updated the question with a couple of screenshots

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

60 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Button stops working after adding the component Event Trigger 0 Answers

Creating a 2D sprite with Trigger Events? 2 Answers

OnpointerClick not working(parents gameObject has EventTrigger) 0 Answers

Layer mask has a weird interaction 0 Answers

Unity UI Events not working for Canvas objects 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges