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 maybe component infinite loop crash editor

Discussion in 'Entity Component System' started by xxvkvk, Oct 3, 2023.

  1. xxvkvk

    xxvkvk

    Joined:
    Jan 19, 2023
    Posts:
    2
    component:
    Code (CSharp):
    1. public class Com : IComponentData
    2. {
    3.      Com TheOther
    4. }

    Code (CSharp):
    1.  
    2. // crash:
    3. componentA.TheOther = componentB;
    4. componentB.TheOther = componentA;
    5.  
    6. //not loop not crash:
    7. componentA.TheOther = componentB;
    8. componentB.TheOther = componentC;
    9.  
    10. // crash
    11. componentA.TheOther = componentB;
    12. componentB.TheOther = componentC;
    13. componentC.TheOther = componentA;
    14.  
    editor 2022.3.5f1c1
    Entities 1.0.14
     
  2. xxvkvk

    xxvkvk

    Joined:
    Jan 19, 2023
    Posts:
    2
    crash editor without any popup window