Skip to main content
Participant
April 21, 2022
Question

Getting "Substance engine not found" when trying to in a build

  • April 21, 2022
  • 1 reply
  • 503 views

Made a build to test the performance (Unity 2021.2.x, Mac OSX) and in the build I get the following error:

 

SubstanceEngineNotFoundException: Substance engine not found
at Adobe.Substance.NativeMethods+NativeMethodsImpl.sbsario_sbsar_load_from_memory (System.IntPtr data, System.IntPtr size) [0x00025] in <28eec1c1cee94ed38253b35ccf47d203>:0
at Adobe.Substance.NativeMethods.sbsario_sbsar_load_from_memory (System.IntPtr data, System.IntPtr size) [0x00010] in <28eec1c1cee94ed38253b35ccf47d203>:0
at Adobe.Substance.SubstanceNativeHandler..ctor (System.Byte[] fileContent) [0x0002b] in <28eec1c1cee94ed38253b35ccf47d203>:0
at Adobe.Substance.Engine.OpenFile (System.Byte[] data) [0x00000] in <28eec1c1cee94ed38253b35ccf47d203>:0
at Adobe.Substance.Runtime.SubstanceRuntime.InitializeInstance (Adobe.Substance.SubstanceMaterialInstanceSO substanceInstance) [0x0000b] in <a948cc3a078e4af6aca89ce3b6cba84f>:0

When running in the Editor, there are no issues - only happens in the OSX build.

 

Going to try and build this under Windows and see if I get the same issue.

 

 

This topic has been closed for replies.

1 reply

Participant
April 22, 2022

Nevermind, I was manually initializing the Substance engine and forgot to actually initialize it.  (Normally it's done when you access SubstanceRuntime.Instance)