NullReferenceException: Do not create your own module instances, get them from a ParticleSystem instance
.loop不能用
最后发现,是粒子系统并不挂在节点GameObject下,而是有子节点的
偷懒可以这么写:GetComponentInChildren
var mainModule = glowInstance.GetComponentInChildren<ParticleSystem>().main;
mainModule.loop= true;