Thank you for your continued help. After adding the code above, it then returns this error:
/home//Documents/Unreal Projects/Colonize/Source/Colonize/GameDirector.cpp:85:28: error: use of undeclared identifier 'VectorParameterValues'; did you mean 'UMaterialInstanceConstant::VectorParameterValues'?
ParameterValue = new(VectorParameterValues) FVectorParameterValue;
^~~~~~~~~~~~~~~~~~~~~
UMaterialInstanceConstant::VectorParameterValues
/home//Downloads/UnrealEngine/Engine/Source/Runtime/Engine/Classes/Materials/MaterialInstance.h:202:39: note: 'UMaterialInstanceConstant::VectorParameterValues' declared here
TArray<struct FVectorParameterValue> VectorParameterValues;
^
/home//Documents/Unreal Projects/Colonize/Source/Colonize/GameDirector.cpp:85:28: error: invalid use of non-static data member 'VectorParameterValues'
ParameterValue = new(VectorParameterValues) FVectorParameterValue;
^~~~~~~~~~~~~~~~~~~~~
Changing the code to what the compiler suggests yields this error:
/home/username/Documents/Unreal Projects/Colonize/Source/Colonize/GameDirector.cpp:85:55: error: invalid use of non-static data member 'VectorParameterValues'
ParameterValue = new(UMaterialInstanceConstant::VectorParameterValues) FVectorParameterValue;
@Antidamage To clarify what is happening, the material I am using has a value to control how opaque the shown grid is. It can be dynamically instanced, or two preset materials can be used to toggle between grid and no grid. However, the Landscape actor class has no functions whatsoever to be able to easily change materials or set its material to one that is dynamically instanced. is attempting to step around the system to be able to change values of the material during runtime.