Move object A (the object related to the camera) away from the circular object B.
Return to the position of the circular object B, sometimes you need to repeat the operation several times.
Zero-based Reproduction Steps:
In the scene, pre-generate multiple B objects using one A object (place them at different X-axis positions for easier identification).
Enable the “Respawn when leaving camera” condition and enable condition in the BaseSettings of B objects.
Set destruction conditions for B objects (out of distance, time elimination, leaving camera).
When the camera leaves the destruction trigger position of B objects, B objects will respawn at the same position, and sometimes it will cause the debug mode to freeze or crash directly.
Problem Description:
After object A generates several B objects, B objects are deleted when they leave the camera range. When returning to the area where B objects are located again, B objects will be generated at the same position, and sometimes it will cause the program to freeze or crash.
After object A generates other B objects, these B objects will not trigger the “enable when camera is close” condition in BaseSettings.
If object B is placed directly in the scene in advance, there will be no crash, and the respawn and deletion processes will be smooth.