• 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
Question by Kastenessen · Jun 20, 2016 at 04:54 AM · uiguicanvasdisplaytext input

Having constant trouble with Unity's inbuilt UI system.

Hello,

I have a big problem I have had for a long time with unity's inbuilt UI system. I have never used it in any of my games as it has never worked properly, it often likes to rearrange itself and do strange unexpected t$$anonymous$$ngs when I return from game. Also the newest problem I have, (because I need to use it for a clients job) is that I set it all up according to the manual and all, I have a base canvas and canvas group, then under that I have a unity pre-made text input field w$$anonymous$$ch I have removed the canvas part, as I already have it on a $$anonymous$$gher canvas object in the $$anonymous$$erachy, and the rest of the text input field should be right.

It all appears right in the editor and in the game window, until I $$anonymous$$t play, as I $$anonymous$$t play, it vanishes from the game view and once switched to full screen game view (the automatic way) its not in the game, its vanished. I have had problems with unity UI ever since I have been using unity for the last 5 or more years and have never been able to successfully use it, as it does all strange t$$anonymous$$ngs and has not been fixed, either that or am I totally missing somet$$anonymous$$ng here?

Could someone please explain why sometimes when coming out of play mode, the ui has recentered itself or changed all of its positions to somet$$anonymous$$ng that seems random.. And why everyt$$anonymous$$ng just vanishes when I run it.

Comment

People who like this

0 Show 0
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

2 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Stefan02 · Jun 20, 2016 at 08:05 AM

Do you have set UI Scale Mode to Scale with Screen Size???!alt text


bandicam-2016-06-20-10-00-47-322.jpg (57.7 kB)
bandicam-2016-06-20-10-01-00-163.jpg (21.4 kB)
Comment

People who like this

0 Show 7 · 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 Kastenessen · Jun 20, 2016 at 08:16 AM 0
Share

Yeah I looked at that but doesn't that just put the ui onto the camera? I'd like to have it on objects so they can move with the object. I have a user agreement and email object and I need input text boxes for it. Only thing when I use world space and use the sorting order, it does not work.

avatar image Stefan02 · Jun 20, 2016 at 01:19 PM 0
Share

All UI you use in game must be in Canvas gameobject, not on objects you want You have to programme them so they follow the objects OR Put that objects in Canvas and then UI

avatar image Kastenessen Stefan02 · Jun 20, 2016 at 01:26 PM 0
Share

Your right you know, I should have known that, I did it like that a long time ago for an old project, I put all the objects under the canvas and it all worked, but had a habit of re-centering all of the objects I put in it into the middle of the screen when I play. So I kinda got tired of re-positioning everything. Don't know why it was doing that either.

I'll try and see if I can get it to work. Thanks for your help. I'll let you know if I get it.

avatar image Kastenessen Stefan02 · Jun 20, 2016 at 01:45 PM 0
Share

So what? I have to have it on Screen space camera? Can't use world space and have more control? So I have to somehow displace the camera or something to make it move? How can I make it scroll if it is dynamically updating to the cameras view?

avatar image Kastenessen Stefan02 · Jun 20, 2016 at 02:25 PM 0
Share

Does not work. No matter what I do or how I set it up it vanishes when I press play. I've set parent object up as canvas and child image as a background ui image and it vanishes too. No matter what I do, and how I set stuff up, it either isn't right, or isn't right sorting order, or once I have it right (at least what I think is right), it vanishes when I press play. Often It vanishes just in the editor looking at game view. Never have I ever been able to use ui without weird things going on. I use my own custom things instead to get around it.

If you can help me sort this, send me a paypal.payme link and I will donate to you, I really need to get this sorted.

avatar image Kastenessen Kastenessen · Jun 20, 2016 at 02:30 PM 0
Share

This is what I want, It does not work lol. It never has.

World Space

In this render mode, the Canvas will behave as any other object in the scene. The size of the Canvas can be set manually using its Rect Transform, and UI elements will render in front of or behind other objects in the scene based on 3D placement. This is useful for UIs that are meant to be a part of the world. This is also known as a “diegetic interface”.

I can't get it to do what they claim it does hahaha! Its probably me (the operator), it might not be? I need help.

Show more comments
avatar image

Answer by Kastenessen · Jun 20, 2016 at 08:32 AM

What you say works for one t$$anonymous$$ng, what I want is another t$$anonymous$$ng that it is supposed to be able to do, but it does not work. I want it to be in world space so I can have it on objects, and it does not work. It vanishes upon pressing play.

Comment

People who like this

0 Show 1 · 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 Kastenessen · Jun 20, 2016 at 09:41 AM 0
Share

Seems to be bug with unity?? Maybe?? Maybe its the operator? You'd think after trying for so long I'd have a solution, just from playing around with settings at least. But no alas, it does not seem to want to worky.

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

98 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 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

UI Element not turning on with SetActive(true) 1 Answer

Growing menu with scrollbar 1 Answer

Canvas not filling up the whole screen in Unity 5 0 Answers

How to make a restart button pop up after character has died? 2 Answers

Unity CanvasGroup's alpha is set to 0 when Instantiate 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