• 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 ShadowBroker · Mar 29, 2011 at 12:02 PM · animationfadein

Fade animation in

In my game, the direction from an arm is always the x-axis from the camera. Then, I've created a weapon change animation. So, the problem is, when the arm looks down and I play the animation, it "warps" to the target position. Is there a way to fade from the position, set in a script, to the position from an animation?

Comment
Add comment · Show 4
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 Justin Warner · Mar 29, 2011 at 12:20 PM 0
Share

I'd think you'd have to animate it...

http://unity3d.com/support/documentation/ScriptReference/Animation.CrossFade.html

$$anonymous$$ight help more... But I'm assuming you're doing that already... I'm sure their is a way to do it, someone else probably knows, good luck!

avatar image Statement · Mar 29, 2011 at 12:48 PM 1
Share

Post you answer as an answer ins$$anonymous$$d of a comment :) Chances are unknown (google) was using animation.Play ins$$anonymous$$d of animation.CrossFade.

avatar image Justin Warner · Mar 29, 2011 at 01:21 PM 0
Share

Lol... Almost every example on playing an animation is with the cross fade XD, especially for character animations lol. Just assumed he'd use that... Thought it might have been a glitch of some sorts...

avatar image ShadowBroker · Apr 04, 2011 at 10:42 AM 0
Share

Of course I used CrossFade ;) But it does only work if I try to fade from animation to animation but not from script to animation :/

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Justin Warner · Mar 29, 2011 at 01:21 PM

I'd think you'd have to animate it... unity3d.com/support/documentation/ScriptReference/ Might help more... But I'm assuming you're doing that already... I'm sure their is a way to do it, someone else probably knows, good luck!

Copy pasta because Statement said so.

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Easy fade in/out on level load/end? 2 Answers

How would I go about making an animation affected by this script? 1 Answer

How to run an animation mouse click. 2 Answers

Fade in & out Activation Tracks in Timeline 2 Answers

Change animation values via scripting? 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges