When creating instances of a ParticleSystem prefab with a time delay as shown in the script below, the ParticleSystems created later may appear pink. The first instantiated ParticleSystem displays correctly.
[SerializeField] private GameObject particlePrefab;
private async void Start()
{
Instantiate(particlePrefab, new Vector3(0.5f, 1f, 1f), Quaternion.identity);
await Task.Delay(3000);
Instantiate(particlePrefab, new Vector3(-0.5f, 1f, 1f), Quaternion.identity);
}
Is there any cause or solution?
Additional Information:
- Environment: Unity 2022.3.15f1 + URP + PolySpatial 0.7.1 + Xcode 15.2
- The issue does not occur in the Unity Editor but happens in the visionOS simulator.
- The material used in the Particle System is ParticlesUnlit (Universal Render Pipeline/Particles/UnLit Shader).
- I reported a bug with a sample project and the id is
IN-66041
Thank you in advance.