Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
0
Question by FilbertGLU · Jun 05, 2015 at 08:35 AM · unity 5uieventsystemunityui

Redirect UI Events to non visible UI Hierarchy

I have two UI Hierarchies under separate root game objects as follows:

 Hierarchy 1 (Canvas)
  | - RawImage (Set with RenderTexture (As RT))

 Hierarchy 2 (Camera - targetTexture set to RT)
  | - Canvas (Camera space - set to camera above)
    | - Image1 (would accept drag events)
    | - Image2 (same as above)
    | - InputField1

Hierarchy 1 is what is displayed on the screen, and because the camera has its targetTexture set to RT1, whatever is rendered by the camera in Hierarchy 2 is not visible on the display. That means Hierarchy 2 does not get events at all.

The issue is I'd like items in Hierarchy 2 to be interactable (the Images and InputFields) by the user, as they can see whatever the camera sees through RT on the RawImage.

The immediate solution is to attach an EventTrigger on the RawImage, subscribe to any events of interest, directly send the event data (BaseEventData) to a script attached to Hierarchy 2, which would implement those events of interest and manually handle any interactions with its items.

While that is a solution, I'm wondering if there's a more direct way of "piping" or "redirecting" any event from the RawImage to Hierarchy 2 to take advantage of Unity's built in event system.

Note that the Canvas in Hierarchy2 also has a GraphicRaycaster, if that helps.

Comment
Add comment
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

0 Replies

· Add your reply
  • Sort: 

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

2 People are following this question.

avatar image avatar image

Related Questions

Does Unity uGUI support multi-user interface? 0 Answers

IsPointOverGameObject() not working as intended!!! 2 Answers

Unity 5 UI Scroll Rect Problem 0 Answers

When i press play the buttons work, however, the buttons dont work on my iphone. 1 Answer

Implicit "Horizontal" Axis exceptions? 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