Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 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 CHE6yp · Jul 31, 2015 at 09:40 PM · uicanvasparentchild

Making canvas a child of another gameObject

Hello, I am sorry if this is a stupid question, but I couldn't find anything useful in the internet.

I am making a turn based combat (jrpg kinda style), and I have this problem. I have one canvas in the scene already, and it is used to show me stuff like who is attacking, what is current battlestate etc. I want my characters to have different skills, and therefore different buttons. But when I make canvas that is a child of my character - it doesn't show, unless it's in world render mode, which is not what I'm going for. Is there something that I'm missing here?

Comment
Add comment · Show 1
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 Wolfshadow · Jul 31, 2015 at 09:58 PM 0
Share

Try hiding/showing different guis per charachter. I know it doesn't do what you want, but It might be your path to take. Sorry. :[

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by vardulov · Aug 01, 2015 at 01:21 AM

So if you're in Rendermode Screen space - Camera, make sure you've specified the Camera that you want to render for. Also check that the the elements on the canvas are actually being mapped to an on screen position.

Sometimes it could be the position of the Canvas, so I would check to see if the position and rotation are all 0. This was an issue I ran into that the position of my canvas ended up being behind my camera and would track it fine, but was just in spot I had no way to look at.

Hope this helps, Victor

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

Answer by TonanBora · Aug 01, 2015 at 12:09 AM

From what I understand, you want to have different Canvas UIs for each Character. Well, you could try making an empty game object, then name it whatever you named your character. Then Parent the actual Character and the Canvas to it.

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

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Make a simple tree 1 Answer

How to I make ui in world space look at the player? 2 Answers

parent child relation btwn gammeobject and a ui canvas and ui text positioning problem 1 Answer

Block child canvas position when moving parent 0 Answers

Connecting Multiple Rigidbodies with Collision 0 Answers


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