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
1
Question by Cyriel Martens · Jul 30, 2010 at 10:32 AM · cameraguitexturevisible

GUI Texture not visible

Hey,

I'm taking my first steps with the GUI-textures.This is what is did:

  • I made a cube in Unity
  • I deleted every Component.
  • then i've added the GUItexture
  • And i've selected a picture (.tiff).

But when i play the game , i can't see the GUItexture eanywhere. I have a 3d scene with camera and a cube. The camera follows the cube with " smooth Follow(script)". So that's my situation. Why can't i see the GUItexture i used?

-Thanks

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 Eric5h5 · Jul 30, 2010 at 10:59 AM 1
Share

Ins$$anonymous$$d of doing that stuff with a cube, simply do GameObject -> Create Other -> GUI Texture

3 Replies

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

Answer by Mike 3 · Jul 30, 2010 at 10:39 AM

Because the GUITexture needs specific x/y coordinates to show up on screen. They use 0 to 1 as viewport positioning, so if you're outside that, it won't show

If you want to show the GUITexture where the cube is, attach it to another object, and reposition it every frame from a script (using Camera.WorldToScreenPoint to get the new x/y positions)

Comment
Add comment · Show 4 · 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 Eric5h5 · Jul 30, 2010 at 10:43 AM 1
Share

Just to nitpick, 0 to 1 is viewport space; screen space uses pixels.

avatar image Cyriel Martens · Jul 30, 2010 at 10:56 AM 0
Share

I just want to show it on screen. I used the cube because i thought i needed something to put the texture on. I could also have been a plane. But i changed the x and y position, also the left,right,bottom and top-border. But still nothing happens.

i'm trying to make a life-bar on the corner of the screen. but it still doesn't show..

avatar image Mike 3 · Jul 30, 2010 at 11:18 AM 0
Share

You're right eric, fixed :) Cyriel - As eric says in a comment to your answer, use GameObject > Create other > GUI Texture to make your GUITexture. Set the texture on the GUITexture, then set the x and y position to around 0, 0 (for top left). You can then offset the left and top border values by half the width and height to position it perfectly

avatar image Cyriel Martens · Jul 30, 2010 at 11:56 AM 0
Share

Oh Hey, it got it !! I thought i had to make an object and apply a GUI-texture to it. Yeah i know, i'm kinda learning lol. I worked right away! Thanks allot guyz ! :)

avatar image
0

Answer by Neo 2 · Jul 31, 2010 at 09:30 AM

Check the GUITexture Transform position values.. the X Y Z values must be between 0 to 1 values to avoid any strange behaviour. I find it easy to set the X Y and Z values to 0, then on the GUITexture component's PixelInset, set the values there,, the x & y locations on the screen and the width,height of your tiff file..

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 Prabir · Dec 07, 2013 at 07:54 AM

Just if someone looking for a similar issue, most of the time, it can be a silly mistake like , the GUIlayer is unchecked in the Camera. So if you tried everything and still can't see the GUI Texture or Text, check if the GUILayer is unchecked in the Camera. I hope its help :)

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

1 Person is following this question.

avatar image

Related Questions

Why does my sprite turn invisible for the camera 1 Answer

Trying to make a Diablo like minimap, but I am having problems. Bug? 0 Answers

Path Trigger Animation 1 Answer

Help with cameras and enabling/disabling GUItextures? 1 Answer

Making GUI Buttons on a GUI Texture 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