Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 paritparit · Jul 15, 2011 at 10:34 PM · animationbuttonplaystopmovie

Play a video on clicking on an object

Hello guys, Im very new to learning Unity.I was wondering if anyone can help me, what I need to do is, when I click on a defined spot or object on my scene, I want to open a new window inside my scene and load a video player with a stop and play button and also an Exit (x) button which will bring me back to where I was before.Something like lets say a info video or animated text for a specific object, when the user clicks on it. Is this possible?

Thank you in advance

Comment
Add comment · Show 6
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 DaveA · Jul 15, 2011 at 11:16 PM 0
Share

It is very possible. Read the scripting reference and you should be able to figure it out.

avatar image SisterKy · Jul 15, 2011 at 11:28 PM 0
Share

@DaveA: All the 'are we to generous?' in its own right... but that's no reason to be mean! And YES, pointing to the scripting reference of all places IS mean. That is a truly scary and fruitless place to start out! (I know, what I'm talking about! it's almost impossible to squeeze any information out of that dry bread when you don't come from some other scripting-background and know how to read what's written there!)

@paritparit: Try http://www.google.com/cse/home?cx=002470491425767499270:iugs1ezlsfq and search for GUI, On$$anonymous$$ouseDown, play video... Good Luck. Greetz, $$anonymous$$y.

avatar image paritparit · Jul 15, 2011 at 11:57 PM 0
Share

Thank you very much $$anonymous$$y, I really appreciate your taking the time to reply to my answer!!! And yes I am actually gonna need a lot of good luck and even more google search about this. I have already searched a lot on different unity forums,on past replies and on youtube, but like you already said,I have zero scripting background which makes it even harder to make sense of what I read in different posts.

However, a kind answer is always appreciated, and even a "not so helpful" answer, like DaveA's is also appreciated.

About the "are so generous" topic, I fully understand the point there,and I can assure you that I did a lot of research before my posting the question, but...I guess no research is enought since I haven't figured out the way to do it yet.

Anyways, thank you guys for your time to reply to me, cheerzzzz :)

avatar image DaveA · Jul 15, 2011 at 11:59 PM 0
Share

Tough love. If you know zero about scripting, it's not gonna get fed to you. You have to learn it. It's a process. This forum is about answering questions specific to Unity, mainly scripting. Some knowledge is required. And if advising someone to read a manual or use Google, ins$$anonymous$$d of waiting hours or days to get an answer they could find themselves is mean, then color me bad. I was new, long ago (1 year). I was often advised to google and read. It helped me grow for sure. If I relied on this forum to hand me all my answers I'd know just as much today as I did when I started.

@paritparit : see below

avatar image paritparit · Jul 16, 2011 at 12:22 AM 0
Share

Yes DaveA, I fully understand what you're saying and I couldn't agree more.I already know that it is a process not easy to learn. I already know how it feels to be in the possition of actually knowing the answers to what newbies ask, but if I didn't have the time or the will to answer-help someone, I wouldn't tell them "just search and you will find". I mean, yes it is a response after all, but it isn't a helpful one,and there is not a point in answering to a question when you know you wont help anyone.You could just not answer,right? Well,at least that is how I feel.

Im glad to know that today you actually have learnt things useful to you.That is good for you. And,yes, like I already said, I know I have much search to make,but when people point out a link or a source where you can take a look is even better!!

Again,thank you DaveA for you time! :)

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by DaveA · Jul 16, 2011 at 12:02 AM

See the following, pretty much all you need is there:

http://unity3d.com/support/documentation/ScriptReference/Input-mousePosition.html

http://unity3d.com/support/documentation/ScriptReference/Physics.Raycast.html?from=Input

http://unity3d.com/support/documentation/ScriptReference/MovieTexture.Play.html

http://unity3d.com/support/documentation/Components/GUI%20Scripting%20Guide.html

http://unity3d.com/support/documentation/ScriptReference/GUI.Window.html

http://unity3d.com/support/documentation/ScriptReference/GUI.Button.html

Comment
Add comment · 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 paritparit · Jul 16, 2011 at 12:25 AM 0
Share

That's sweet!Thank you loads!

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

Walking Animation 1 Answer

Play Animation and Stop Moving on Enemy Collision 1 Answer

Play animation when in collider and button pressed 1 Answer

Automatically playing animations 1 Answer

Animation problem in script 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