• 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
Question by Taviox_sensei · Jul 28, 2014 at 12:03 PM · itweenpath

How can I make my iTweenpaths always visible in the editor ?

I am working on a 2D shooting game and I wish to use the Unity editor as a level editor. I made prefabs for my ressources (ship, fiends, background elements, ...) and everything works fine.

I'm using iTween to make the camera follow a predefined path and it works perfectly. I also want to use iTween Paths to define the fiends patterns.

My problem is that the paths are only visible if I select them or a parent element. And it's not convenient to draw the path of a fiend without seeing the paths of the other ones.

My question is : does iTween allow to have paths always visible in the editor ? If not, do you have a clue on how to patch it in order to have it acting this way ?

Thanks for you help !

Comment

People who like this

0 Show 0
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

1 Reply

  • Sort: 
avatar image

Answer by Alex-CG · May 04, 2015 at 11:01 AM

I'm most likely late, but I had this same doubt myself and I've solved it, so here is a way of doing this.

I guess you're using iTweenPath, so what you need to do is to go to the iTweeenPath.cs file, and change the name of the method OnDrawGizmosSelected() to OnDrawGizmos(). This will display all the paths, always.

For a more usable way of doing this, you should add a boolean member to tell if you want to show only the selected one or every path in the scene, to do this you must implement both event functions (OnDrawGizmosSelected() and OnDrawGizmos()) and do the same the actual OnDrawGizmosSelected() is doing now but conditionally, depending on the value of that boolean, in both methods.

Hope this helps someone.

Comment
juggstar

People who like this

1 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 juggstar · Feb 11, 2016 at 09:35 AM 0
Share

super useful. thanks a lot!

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta by June 9. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

No appropriate version of 'iTween.PutOnPath' for argument list ... was found 3 Answers

iTween sine wave like movement 1 Answer

C# - create an iTweenPath in the Sourcecode 1 Answer

IA with ITWEEN PointOnPath 0 Answers

How to orient object to road/itweenpath 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