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 robert 1 · Feb 17, 2011 at 07:16 PM · texturedisplay

texture display

display the logo as texture for 5 sec (approx) and move on to next scene, display the time in GUI Text method

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 Persona · Feb 17, 2011 at 07:30 PM 0
Share

You might wanna rephrase that so that we can understand better.

avatar image robert 1 · Feb 17, 2011 at 07:58 PM 0
Share

i want to display a logo as GUI texture for approximately 5 sec then i have to switch to next scene where i have to display time in gui text

avatar image Persona · Feb 17, 2011 at 11:55 PM 0
Share

It sounds more like you want a splashscreen....

3 Replies

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

Answer by robert 1 · Feb 18, 2011 at 12:11 AM

var todaysDate : GameObject; //assing for 3d text var timestring; var tex : GUITexture;

function Update () { timestring = System.DateTime.Now.ToString("hh:mm:ss"); delay1(); } function delay1() { yield WaitForSeconds(5); tex.enabled = false; todaysDate.GetComponent(TextMesh).text = timestring; }

this is the answer for that question

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 Jason B · Feb 17, 2011 at 08:03 PM

Place your material onto a plane or cube. Adjust the mesh so that it is where you want it in relation to your camera. Light the scene with a directional light. Your script will need to consist of some sort of counter that adds to itself every frame inside of Update() (preferably multiplied by Time.deltaTime so the count is normalized on all computers), and an if statement checking what the counter is at. If it is greater than or equal to the desired amount, load the scene of your choice. Displaying the counter in your GUI Text is as simple as setting the text of it to your counter's variable + "" (which is a quick and dirty way of printing only a variable to a string.

Judging by your question, I'm going to assume you're new to programming.

I do enjoy helping people (and I do not want to sound rude or anything of the sort), but I personally don't write simple scripts for people, as I know we get a few questions occasionally where people want basic scripts written for them and rather than learn scripting, they repeatedly come back asking us to edit/rewrite them. I'd much rather help you to help yourself so we can avoid that altogether.

Everything I explained in the first paragraph can be learned about by reading the reference manual that came with Unity. I would highly recommend using/searching the scripting reference, as well as learning more about either C# or Javascript (whichever one you want to program with).

You can find the general manual here online: http://unity3d.com/support/documentation/Manual/index.html You can find code references that enable you to manipulate scenes here: http://unity3d.com/support/documentation/ScriptReference/30_search.html?q=level You can find information about time commands, and deltaTime, here: http://unity3d.com/support/documentation/ScriptReference/30_search.html?q=time

And you can search from that page to find any other code snippets you need to get started. I also recommend using Microsoft Visual Studio C# if you intend to use C# for programming. It's free, and has very good auto-complete to help you code "blind" and learn as you program.

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 Persona · Feb 17, 2011 at 11:58 PM

If the process is automated then have a GUIDraw Texture put up the GUI and have it wait for 5 seconds and trigger a boolean that sets off an application load level.

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

No one has followed this question yet.

Related Questions

Texture on plane not displaying properly 0 Answers

Are there any good plugins out there for putting a web page into a unity scene? 1 Answer

Display 2d texture in a 3d enviroment 1 Answer

Assigning UV Map to model at runtime 0 Answers

Displaying Objective Points Through GUI. 2 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