Error message with Dynamic materials

 

Hi,


I get the following error message after instanciating Dynamic Materials:


[LogScript] Accessed None trying to read property CallFunc_CreateDynamicMaterialInstance_ReturnValue

Lvl_Guyane_C /Game/Guyanne/Maps/Lvl_Guyane.Lvl_Guyane:PersistentLevel.Lvl_Guyane_C_0

Function /Game/Guyanne/Maps/Lvl_Guyane.Lvl_Guyane_C:ExecuteUbergraph_Lvl_Guyane:0268


Here's my blueprint:


No issue can be seen on the output, all the virtual screens are working fine. The materials used are actually instances inheriting from the same parent.

Any idea?


Best regards

   Eric Soulard

 
Profile Image
Eifert@Aximmetry
  -  

Hi Eric,

Make sure that they are connected to the right Event nodes and that all the other references exist in your project and they are not destroyed when running the scene:

Warmest regards,

 
Profile Image
Eric Soulard
  -  

Hi,

All this is ok. The upper part of the graph I sent is connected on the event play chain, the lower one on the event tick one. Nothing is destroyed and the virtual screens are all working fine, playing out what is connected to their input pins. I rather suspect an issue with iheritance in this case. I'm worried by all the error messages logged.

Best

 
Profile Image
Eifert@Aximmetry
  -  

Hi Eric,

In your screenshot, the upper part needs to be connected to the Event Tick and the bottom portion to Event BeginPlay.

I don't think material inheritance should cause a problem. But you can try to change all the materials to the same parent material and see if that stops the error messages.
In searching for the cause of the error, you can also try deleting some of the nodes and see if that stops the error messages.
With live link mode, you can easily make changes in the blueprint and run it, as it won't need cooking the project again or even stopping the compound in Aximmetry.

Warmest regards,