• 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 /
This post has been wikified, any user with enough reputation can edit it.
avatar image
0
Question by Melontank · Nov 28, 2013 at 01:16 AM · animationanimatoranimator controllerlegacy

Animations Wont Play, Must be marked as legacy?

Hi Everyone,

Im fairly new to unity but have a fair knowledge of programming.

I have made an animation with mechanim using a flashlight model that is a fbx file. It contains a spotlight which I use code to toggle it on and off with some code. I have a default animation that doesnt animate anything but is linked to and animation on a condition that a bool is false.

I want to be able to press "f" the toggle button in the code to turn the bool false or true, so from there it should play the animation ? Ive tried everything but it says the animation needs to be marked as legacy or something ?

I'm so confused any help will be appreciated!

alt text

alt text

screen shot 2013-11-28 at 1.35.03 pm.png (198.1 kB)
screen shot 2013-11-28 at 1.37.06 pm.png (190.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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Melontank · Dec 01, 2013 at 08:25 PM

Solved*

Turns out I was using the animator controller on the "spotlight" game object instead of the actual "flash light" game object.

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

16 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

Related Questions

Only animate rotation not position 1 Answer

2D: initial sprite idle animation playing too fast upon game initiation until I input movement keys? 1 Answer

Display additional animation on top of other animations 0 Answers

Single Animator for multiple similar sprite sheets 1 Answer

Animation with two transitions only transitions to one of them 0 Answers

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