Search Issue Tracker
Fixed in 4.2.2, 5.0.0-pre.7
Votes
0
Found in [Package]
2019.4
2019.4.24f1
Issue ID
1353859
Regression
No
[AR] Each time an ARFace is added three new GameObjects are created in the scene and never destroyed
Reproduction steps:
1. Create a new project and import AR-related packages
2. Use the code below to reproduce the issue
internal void UpdateEyes()
{
if (leftEye == null && rightEye == null && fixationPoint == null)
{
leftEye = Instantiate(new GameObject(), transform).transform;
rightEye = Instantiate(new GameObject(), transform).transform;
fixationPoint = Instantiate(new GameObject(), transform).transform;
}
UpdateTransformFromPose(leftEye, sessionRelativeData.leftEyePose);
UpdateTransformFromPose(rightEye, sessionRelativeData.rightEyePose);
fixationPoint.localPosition = sessionRelativeData.fixationPoint;
}
Expected result: Only instantiate needed objects and destroy them with an ARFace without leaving empty GameObjects in the scene
Actual result: Each time an ARFace is added three new GameObjects are created in the scene and never destroyed
Reproduces based on user information: 2019.4.24f1 (ARFoundation 4.1.7, ARKit 4.1.7, ARCore 4.1.7)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment