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

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:
    984
    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: