Hi,
I can’t wrap my head around why is it required to declare the emissionModule variable before assigning true value to emissionModule.enabled.
Can someone please explain it to me?
Hi,
I can’t wrap my head around why is it required to declare the emissionModule variable before assigning true value to emissionModule.enabled.
Can someone please explain it to me?
Hi Karoly,
Welcome to our community!
emission
is a property. It very likely does not have a setter. That’s why we cannot “assign” anything to it. The getter very likely returns an object (struct) which is somehow linked to the “particle system”.
Unfortunately, most parts of Unity are not open-source, so we often do not know what exactly is going on behind the scenes. That is also the case here. The API does not reveal much information either.
Did this help?
See also:
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.