SetMaterial() not working on Prop

Does anyone have any advice as to why i can’t use the SetMaterial() function on the Asteria Sign Frame prop? I see the Material input and can set it manually in UEFN but in Verse it’s not taking the material when SetMaterial() is called. If I do the same code on a plane or cube it works fine, but I was hoping to set the material on the prop itself so I could then set parameters of it via verse.

Sample code:

bb_update_device := class(creative_device):
    @editable MySign : creative_prop = creative_prop{}
    
    # Material instance with parameter to be adjusted via verse
    MaterialInstance : Counter.AirVent_mat_Inst1_material = Counter.AirVent_mat_Inst1_material{}

    # Runs when the device is started in a running game
    OnBegin<override>()<suspends>:void=
        Sleep(1.0)
        MySign.SetMaterial(MaterialInstance)

2 Likes

Did you find a solution to the issue?

Did you check allow custom materials on the prop?

1 Like

I enabled “Allow Custom Material” but it can still only spawn the prop (with the material that i have set in the editor) but when i use SetMaterial(Material) the material does not change.

I thought it only worked for materials of meshes placed here, although Im not sure haven’t used it in a good bit

SetMaterial() sets material for Static Mesh Component. Try setting up your mesh inside that component and it should work just fine :slight_smile: