Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Get AnimatorClipInfo with Flash Build ?

Discussion in 'Animation' started by Liszt, May 19, 2015.

  1. Liszt

    Liszt

    Joined:
    Jan 12, 2015
    Posts:
    29
    Hi,
    we currently work on a web version of our game. In flash cause WebGL is not enough stable for us. And use unity Webplayer is not a valid option for us due to plugin drop within web browser.

    But we are in a dead end right now with Mecanim, all work except this issue. We need to use these methods in our game "GetNextAnimatorClipInfo" or "GetCurrentAnimatorClipInfo" but those 2 are not available in Flash.

    There is another way to get those 2 informations that could work with Flash ?

    We try to find another solutions but all were dead end...

    If someone have a solution ?
     
  2. Mecanim-Dev

    Mecanim-Dev

    Joined:
    Nov 26, 2012
    Posts:
    1,675
    You are right, GetCurrentAnimatorClipInfo is not available on flash because there is a system limitation that prevent us to support it.

    Which version of Unity are you using?
     
  3. Liszt

    Liszt

    Joined:
    Jan 12, 2015
    Posts:
    29
    We are currently using Unity 4.6.1, the last version that allow us to build in flash. But the class AnimatorInfo seems available in Flash build so there is maybe a way to get this element from a state without using Get(Current/Next)AnimatorClipInfo ?
     
  4. Mecanim-Dev

    Mecanim-Dev

    Joined:
    Nov 26, 2012
    Posts:
    1,675
    The class is available, but the function to query it is not available, we could not return an array of unmanaged type that have reference to managed type like AnimationClip.

    Unfortunately no.
     
  5. Liszt

    Liszt

    Joined:
    Jan 12, 2015
    Posts:
    29
    ok. At least it's clear ;). Thanks again for the answer !