• 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 Peter Hagan · Feb 17, 2010 at 10:22 AM · 2dvideo

How do I animate a pre-animated video on Unity Material object?

I have created a plane mesh, which has a little video 2d animation, created on 3d Studio. This animates well in rendering on this, however, importing it and placing it in the world space on Unity, does not reveal, possibly setting incorrect, anybody know the answer?

Comment
Add comment · Show 1
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 andeeee · Feb 19, 2010 at 01:27 PM 0
Share

Are you using a movie texture for this? Are you seeing nothing at all or just the first frame or... ?

1 Reply

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

Answer by Jack Eaves · May 24, 2010 at 06:05 PM

[Edit] just realised your question was asked on Feb 17th and it is now May, oh well maybe you still need help.

I assume you've created the plane and have the animated texture working within 3D Studio, but then when you import it to Unity it doesn't play.

Here is what you shoud do (assuming you havn't already.

  • Place your Plane into the scene (or create a new Plane via Game Object > Create Other > Plane)

  • Click on your plane and go to 'Mesh renderer' in the Inspector Window, then go to Materials and where it says 'Element 0' press the arrow to open a dropdown menu and select your Animated Texture (or simply drag the texture into this field). This assigns the texture to the plane.

  • It's a good idea to change the shader of the texture to Self-Illumin/Dissuse as this means that the texture generates light and will be coreectly visable (though this is only a personal preference)

  • Next you will need a script to tell the animation to play and when to play it, here is an example here:

    function Start () { // play the cutscene renderer.material.mainTexture.Play (); }

    Assign this script to the Plane that the texture is applied to, That will simply play the animation straight away as you start playing.

    Hope that helps.

    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

    If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

    Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

    Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

    Follow this Question

    Answers Answers and Comments

    No one has followed this question yet.

    Related Questions

    Assets/Scripts/PlayerController.cs(32,49): error CS0126: An object of a type convertible to `float' is required for the return statement 1 Answer

    3D Video within Scene 1 Answer

    RawImage flicker when changing from Texture2D to VideoPlayer texture 1 Answer

    [2D] Place video in the background 1 Answer

    2D Animation does not start 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