Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Alembic not showing in build

Discussion in 'Editor & General Support' started by Juang3d, Feb 17, 2020.

  1. Juang3d

    Juang3d

    Joined:
    Sep 25, 2012
    Posts:
    87
    Hi there.

    I imported one alembic file, after that I copied the ABC files to the streaming assets folder, in the editor I can see everything working, but when I do a build, the alembic animation does not appear.

    The alembic assets is already in the scene from the begining.

    Any ideas on how to solve this please?

    Thanks.
     
  2. Juang3d

    Juang3d

    Joined:
    Sep 25, 2012
    Posts:
    87
    I get this errors with a development build, any idas about this @vladala ?

    Code (CSharp):
    1. The referenced script (UnityEngine.Formats.Alembic.Importer.AlembicStreamDescriptor) on this Behaviour is missing!
    2. (Filename: C:\buildslave\unity\build\Runtime/Scripting/ManagedReference/SerializableManagedRef.cpp Line: 199)
    3.  
    4. The referenced script on this Behaviour (Game Object '<null>') is missing!
    5. (Filename: C:\buildslave\unity\build\Runtime/Mono/ManagedMonoBehaviourRef.cpp Line: 334)
    6.  
    7. A scripted object (probably UnityEngine.Formats.Alembic.Importer.AlembicStreamDescriptor?) has a different serialization layout when loading. (Read 52 bytes but expected 180 bytes)
    8. Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
    9. (Filename: C:\buildslave\unity\build\Runtime/Serialize/SerializedFile.cpp Line: 2269)
    10.  
    11. The referenced script (UnityEngine.Formats.Alembic.Importer.AlembicStreamPlayer) on this Behaviour is missing!
    12. (Filename: C:\buildslave\unity\build\Runtime/Scripting/ManagedReference/SerializableManagedRef.cpp Line: 199)
    13.  
    14. The referenced script on this Behaviour (Game Object 'Hall_Anim_V2 (1)') is missing!
    15. (Filename: C:\buildslave\unity\build\Runtime/Mono/ManagedMonoBehaviourRef.cpp Line: 334)
    16.  
    17. A scripted object (probably UnityEngine.Formats.Alembic.Importer.AlembicStreamPlayer?) has a different serialization layout when loading. (Read 32 bytes but expected 72 bytes)
    18. Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
    19. (Filename: C:\buildslave\unity\build\Runtime/Serialize/SerializedFile.cpp Line: 2269)
     
  3. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    8,991
    are some of those files in any Editor folder? then they probably wouldn't get included in build.
     
  4. Juang3d

    Juang3d

    Joined:
    Sep 25, 2012
    Posts:
    87
    Yes, they are, in both the streaming assets and the assets folder, that's why I found it weird
     
  5. Juang3d

    Juang3d

    Joined:
    Sep 25, 2012
    Posts:
    87
    BTW I don't understand why is it referencing this folder:

    Code (CSharp):
    1. C:\buildslave\unity\build\Runtime
    I don't have that folder in my system, and I have never used that folder at all.
     
  6. Juang3d

    Juang3d

    Joined:
    Sep 25, 2012
    Posts:
    87
    Ok, I noticed a thing.

    Alembic files are being exported if I do 64 bit builds, and I noticed a thing in one of the alembic files, the Win32 platform is not enabled, how can I enable it?


    This is a picture, I'm not sure if the forum will interpret it so I leave the full link:
    http://pasteall.org/pic/bfdcd66a8bf308f19ac0adc115cb2d5f
     
  7. vladala

    vladala

    Unity Technologies

    Joined:
    Mar 3, 2017
    Posts:
    188
    Hey,

    Unfortunately the alembic package does not support 32bit apps since it has a native c++ library that does the streaming heavylifting.
    If this is important for you, you could recompile the package to support win32 (you would need the visual studio 2015 with c++ support, and CMake).
     
    LouisHong likes this.
  8. Juang3d

    Juang3d

    Joined:
    Sep 25, 2012
    Posts:
    87
    @vladala thanks for this, not a big deal!

    But please update the documentation to reflect this because I have not found this information in the documentation at all, and it's kind of important I think.
    (I may have missed it, but I have not found it, so probably even if it's there, it's not visible enough)

    Thanks
     
    crico-jp and LouisHong like this.