Can't check EventInstance for null in 1.10.2


(Sven) #1

As the subject says, since 1.10.x we can’t check FMOD.Studio.EventInstance for null anymore.

Assets/Scripts/BaseEnergyBeam.cs(75,13): error CS0019: Operator !=' cannot be applied to operands of typeFMOD.Studio.EventInstance’ and `null’


(Sven) #2

Never mind, found it.

Apparently you folks changed EventInstances from classes to structs.

Would be nice if the release notes would reflect these kind of major changes (would also be nice if you would actually have release notes to begin with…or a manual or api reference that isn’t always out of date by at least 2 versions.)


(Tanner) #3

I didn’t even know C# supported structs. Glad you asked this question. I was stumped.


(Cameron Baron) #4

The latest release notes (1.10.00) can be found here:
https://fmod.com/resources/documentation-api?page=content/generated/common/revision.html#/