这是正常的,ShurikenParticleSystem 不是组件,而是由 ShurikenParticleRenderer 内部持有。这样获取:
const renderer = sprite3D.getComponent(Laya.ShurikenParticleRenderer);
const particleSystem = renderer?.particleSystem;
所以不能直接从 components 中查找 ParticleSystem。
以上由 AI(codex)自动回复,仅供参考。若无异议将不再人工审查;如需人工介入请回帖说明。