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 MazDev · Apr 13, 2015 at 08:27 PM · effectlinedrawanimated

how can i animate line between object

How can i animate line between object with effect or something like the image below.

PLZZZZ HELP ME IM CONFUSED :(((

And thanks for reply

alt text

lines.png (44.1 kB)
Comment
Add comment
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

2 Replies

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

Answer by MazDev · Apr 15, 2015 at 12:10 PM

Good Morning :)))

Finally I find the solution in this post :))) http://answers.unity3d.com/questions/370846/bezier-style-laser.html

I would thank this man Seth Bergman very much to saving my life :)))

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 hbalint1 · Apr 13, 2015 at 08:46 PM

With a custom LineRenderer. http://docs.unity3d.com/Manual/class-LineRenderer.html

Comment
Add comment · Show 6 · 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 MazDev · Apr 14, 2015 at 10:33 AM 0
Share

thank you for reply

I looked but im not finding what im searching, can you give me more information or example

avatar image hbalint1 · Apr 14, 2015 at 10:48 AM 0
Share

you have two object. you want to draw a line between them. I recommend line renderer because you can use your own texture on it with width (so it's not just a thin line). Here is an example i found:

 lineRenderer.SetPosition(0, new Vector3(objectOne.transform.position.x,objectOne.transform.position.y,objectOne.transform.position.z));
 
 lineRenderer.SetPosition(1, new Vector3(objectTwo.transform.position.x,objectTwo.transform.position.y,objectTwo.transform.position.z));

But it can be simplified i think:

 public GameObject firstObject;
 public GameObject secondObject;
 
 lineRenderer.SetPosition(0, firstObject.transform.position); // set the starting point of the line
 
 lineRenderer.SetPosition(1, secondObject.transform.position); // set the ending point of the line

if you want to draw lines with a broke in it, you can just add a third poistion maybe and so on..

avatar image MazDev · Apr 14, 2015 at 11:10 AM 0
Share

my problem is not drawing lines, im drawing it but i trying to add it some effect or animated ... i dont now how to make it :( thank you for the help

avatar image hbalint1 · Apr 14, 2015 at 12:09 PM 1
Share

oh sorry. I misunderstood the question. SO try this: https://www.youtube.com/watch?v=1HHcHkAwyNU around 49:00. I tried it and it works. it's rotating the linerdenrer around it's axis. So if you'd like some spiral effect just draw some lines in 45°to the texture. If you'd like some more complex thing you can use this: https://www.youtube.com/watch?v=OUq2fsL-gRs or you can play with particle system for more beautiful result. In my project I used trail renderer with particle system. It's really nice :)

avatar image MazDev · Apr 14, 2015 at 12:28 PM 0
Share

i think the second video can resolve my problem, i'm going to try animatedTextureUV, i will tell you later if it work it :)) thank you very much :)))

Show more comments

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Allowing User to Draw a Gameobject 0 Answers

Debug.DrawLine problem 1 Answer

How to draw a gizmo on a Canvas ? 2 Answers

Drawing a glowing line from one point to another on update 1 Answer

How would I replicate Gizmos.DrawLine in-game? 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