Author Topic: Substance 2.2 overwrites EditorApplication.delayCall completely  (Read 632 times)

Hi, we have discovered that Substance 2.2 is setting EditorApplication.delayCall rather than adding to it. This causes all other plugins that use EditorApplication.delayCall to not have their callbacks called by Unity.

Dll: Assets\Allegorithmic\Plugins\Substance\Substance Engine\Editor\Substance.Editor.dll
Class: SubstanceMain
Function: Initialize()

This function appears to be doing:

EditorApplication.delayCall = new EditorApplication.CallbackFunction(this.DelayCall);

It should be a += operator so that it adds to the registered callbacks rather than overwrites them.

Regards
Graham

Hi, we have discovered that Substance 2.2 is setting EditorApplication.delayCall rather than adding to it. This causes all other plugins that use EditorApplication.delayCall to not have their callbacks called by Unity.

Dll: Assets\Allegorithmic\Plugins\Substance\Substance Engine\Editor\Substance.Editor.dll
Class: SubstanceMain
Function: Initialize()

This function appears to be doing:

EditorApplication.delayCall = new EditorApplication.CallbackFunction(this.DelayCall);

It should be a += operator so that it adds to the registered callbacks rather than overwrites them.

Regards
Graham

Hi Graham,

Thanks for posting this issue. We will get this resolved ASAP. I'll talk to the devs about getting this into a patch ASAP.

Cheers,
Wes
Head of Substance Demo Art Team
the3dninja@adobe.com
Twitter: The3DNinja