Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug casting from vector3 to float3 in b13

Discussion in '2022.2 Beta' started by spinaljack, Nov 10, 2022.

  1. spinaljack

    spinaljack

    Joined:
    Mar 18, 2010
    Posts:
    992
    So I made a simple authoring mono behaviour that takes a vector3 and casts the values to a float3 in an IComponentData and it works sometimes and other times it crashes the editor with an error message about invalid cast.

    After the crash I'm not able to close any subscenes and clearing the entity cache doesn't fix it.
    I usually have to restart the editor or my whole computer.

    Other times it just works.

    In every instance I'm able to see the correct values in the inspector when viewing in Data Mode: Runtime
    The error occurs when trying to close the subscene.

    Please Unity just make the behaviour consistent and make clearer error messages and stop making me have to restart my computer.
     

    Attached Files: