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 PabloJMartinez · Feb 26, 2014 at 12:28 AM · texture2deffectprojector

How is this effect achieved (newbie question)?

I'm fairly new with Unity and game development in general so, is there somebody who can bring me some light about this effect?

I want to trigger two things when you select a unit in my game:

  • First, fade in a circle for the selected units (I think this could be achieved with a Projector if I'm correct).

  • When selected I want to trigger a effect similar to Wasteland 2, http://youtu.be/icF1Yh8dBbo?t=19m14s , like these waves that appears in the beginning when you select some person.

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 mattyman174 · Feb 26, 2014 at 02:36 AM 0
Share

I would imagine the Waves would be a simple effect animation.

1 Reply

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

Answer by Raiden-Freeman · Feb 26, 2014 at 05:37 AM

It's not a very newbie question actually xD.

Anyway, to modify the opacity/transparency of something, if it's a game object and not a GUI element, it probably has a renderer and a material associated with it.

What you want to do, is through a script, change the alpha channel of the material's color, based on time. You can use the method Color.Lerp() that "gradually" changes it, given that one of its operands uses Time.deltaTime.

Look at these: http://docs.unity3d.com/Documentation/ScriptReference/Material-color.html http://docs.unity3d.com/Documentation/ScriptReference/Material.SetColor.html http://docs.unity3d.com/Documentation/ScriptReference/Color.html

About the rippling effect, you can easily do this with a shader, though I have no experience whatsoever in that field, so I can't help you. You could though create an alpha channel mask that moves (that means something that moves over your texture, and wherever it has 1/0 the texture is transparent, and where it has the opposite it's solid, with the in between semi-transparent) but that's what shaders do, and I haven't read how to program shaders in unity yet.

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

22 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

Related Questions

Material doesn't apply on iPad but works fine on android 1 Answer

How to force snake tail In Snake game to show the texture that is correct for it 0 Answers

Project texture for krater and scorch effect? 0 Answers

How i can project into the terrain? 0 Answers

angrybot water shader lagging problem 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