Adjusting a boolean parameter in a material instance in code?
I'm trying to override a boolean parameter in a material instance in an editor plugin.
Texture parameters can be overridden without problems with SetTextureParametervalueEditorOnly, but... there's no such thing for boolean parameters.
I've tried the following by looking at PreviewMaterial.cpp, and it does update the UMaterialInstance in VS's watch window, but doesn't get reflected in the final version that gets saved it seems... What am I missing?
This is the material parameter I'm trying to adjust, and I'm totally okay with it needing to be recompiled or whatever if necessary.
Actually, seems to do what it needs to after a night of not touching it. Need to remove line 20 or it'll somehow turn the FMaterial::GetRenderingThreadShaderMap() call the engine does into a null object, though. (24 is just superfluous)
answered Jan 31 '16 at 07:36 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here