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 PersianKiller · Sep 15, 2017 at 04:26 PM · animation2danimator

change order in layer via animation window?

how can I change order in layer of an object via animation window?in frame 0 I want it's order in layer to be 4 and in frame 10 I want it to be 5,is it possible?because if I change it in a frame ,it will change in all frames.

alt text

untitled.png (365.9 kB)
Comment
Add comment · Show 11
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 tmalhassan · Sep 16, 2017 at 06:16 AM 0
Share

Did you try changing the Z value? it should bring that layer forward...

avatar image PersianKiller tmalhassan · Sep 16, 2017 at 06:20 AM 0
Share

hehe, yeah it worked thanks :). if you want you can convert your comment to answer :).

avatar image tmalhassan PersianKiller · Sep 16, 2017 at 06:25 AM 0
Share

Haha, no need. i guess you figured it out earlier. Just trying to help :p

avatar image PersianKiller · Oct 08, 2017 at 01:52 PM 0
Share

it worked when I was using sprites,but now I'm animating my character inside unity,I want my character's hand to show in front of his head, but I can't do it even with changing z value nothing is changing.

alt text

avatar image PersianKiller PersianKiller · Oct 08, 2017 at 02:07 PM 0
Share

I used Renderer.sortingOrder = 25; and it worked fine , is there any way that I could do it via animator window?

avatar image tmalhassan PersianKiller · Oct 08, 2017 at 02:31 PM 0
Share

Hi. I don't really get what you mean. So your character is no longer 2D? $$anonymous$$aybe posting another picture will help us understand what's happening.

avatar image PersianKiller tmalhassan · Oct 08, 2017 at 02:51 PM 0
Share

hello.it's a 2d game; when I change z value ,nothing happens. alt text

untitled.png (184.3 kB)
Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by tmalhassan · Oct 08, 2017 at 03:52 PM

So the idea is to have two Hand objects (One under the body and another on top of the body) then open the animator and change the Alpha of the hand game objects so when you want the one on top to appear change it's alpha to 1 and the other hand's alpha to 0.

P.S. In the animator, the alpha property is called Color.a. Also, this will work on both components whether you're using Sprite Renderer or Image.

alt text

Hope this helps :)


screenshot-3.png (95.4 kB)
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 PersianKiller · Oct 11, 2017 at 07:17 AM 0
Share

Weird I cant see it in my editor.

avatar image tmalhassan PersianKiller · Oct 11, 2017 at 07:28 AM 0
Share

What can't you see exactly?

avatar image PersianKiller tmalhassan · Oct 11, 2017 at 07:31 AM 0
Share

that part in red rectangle.

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

220 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 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 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 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 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 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 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 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 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 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

2D Animation does not start 1 Answer

Animation Parameters Not Working Correctly 0 Answers

Setting animator parameter on a single instance of a prefab sets the parameter for all instances 3 Answers

2D Animation appears too big on one frame 0 Answers

How to start an animation by the exit animation frame 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