Unity crashes after changing SubstanceGraph textures resolution from a script.

New Here ,
Jul 05, 2021 Jul 05, 2021

Copy link to clipboard

Copied

Unity Version: 2020.3.11f1

Plugin Version:2.6.0

 

substanceGraph.SetTexturesResolution(new Vector2Int(512, 512));

substanceGraph.QueueForRender();
substanceGraph.RenderSync();

 

throws:

 

NullReferenceException: Object reference not set to an instance of an object
at Substance.Game.NativeCallbacks.csGameTextureCallback (System.String assetPath, System.IntPtr preComputeCallback, System.UInt32 outputHash, System.Int32 pSubstanceFormat, System.Int32 channelsOrder, System.Int32 width, System.Int32 height, System.Int32 mipCount, System.IntPtr sPixels) [0x001a1] in <8088e596cdc64f389f7f79f32b7b19f0>:0
at (wrapper managed-to-native) System.Object.wrapper_native_00007FFF4CC95360()
at Substance.Platform.NativeFunctions.cppProcessQueuedOutputs () [0x00039] in C:\..\Assets\Allegorithmic\Plugins\Substance.Platform\NativeFunctions.cs:864
at Substance.Game.NativeCallbacks+Renderer.ProcessJobs () [0x00012] in <8088e596cdc64f389f7f79f32b7b19f0>:0
at Substance.Editor.SubstanceMain.Update () [0x00119] in <c02c644420904d8cb7f0dbe27269d0c2>:0
at (wrapper delegate-invoke) <Module>.invoke_void()
at UnityEditor.EditorApplication.Internal_CallUpdateFunctions () [0x00076] in <0b8db76a688c4d18a15dd7dfe092a035>:0

TOPICS
Bugs & Crashes, Unity

Views

25

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jul 21, 2021 Jul 21, 2021

Copy link to clipboard

Copied

LATEST

@Woof15A8 Apologies, it looks like we missed your post! I don't have an answer at this moment but will follow up with you as soon as the team reviews it.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation
Download Latest Versions