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 /
This question was closed May 03, 2013 at 12:53 AM by robertbu for the following reason:

Question is off-topic or not relevant

avatar image
0
Question by timmadams · May 03, 2013 at 12:01 AM · trigger

How to trigger a Script from an Object.

Hi all,

I'm wanting to trigger the Motion Blur script by walking into an object in my game. It is set on two levels and the idea is the game starts without motion blur and when you bump into this said object it will trigger the script and turn motion blur on, so from that point the motion blur is activated.

I am very new to Unity and all things script based so I would appreciate a straight forward script that I can apply to my scene.

Hope you understand what I mean,

Thanks in advance!

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 iwaldrop · May 03, 2013 at 12:03 AM 0
Share

It's not very good form to ask others to write scripts for you. Also, this question has been answered plenty of times (how to call a script when the player, or any game object, collides with another game object).

Essentially, you'll need rigidbodies, colliders, an OnCollisionEnter method, a reference to your $$anonymous$$otion Blur script, and a timer after which to disable it.

avatar image DaveA · May 03, 2013 at 12:52 AM 0
Share

Rather than, say, googling for similar questions and learning how to do it yourself? Did you think you were the first to ask this?

avatar image robertbu · May 03, 2013 at 12:53 AM 0
Share

UA is not a script writing service, and your question includes multiple technical issues. @iwaldrop lists some places to start your research. There are tens of thousands of scripts on this site dealing with collisions and actions. Try out some scripts. If you get stuck with a specific script or specific technical issue, open a new question.

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

14 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

Related Questions

Multiple Cars not working 1 Answer

I want my trigger sound only to play once! 0 Answers

My health decreases to fast. 1 Answer

Variable doesn't change when box hit trigger area 3 Answers

How to make the trigger work only once. (SOUND) 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