Hi, I’m trying to add a custom variable to the bass physical material class with
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = PhysicalMaterial)
float AudioAbsorption;
but whenever I add it, my solution won’t compile and throws out
11>C:\Program Files\Epic Games\UE_5.3\Engine\Source\Runtime\PhysicsCore\Public\PhysicalMaterials\PhysicalMaterial.h(30): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
11>C:\Program Files\Epic Games\UE_5.3\Engine\Source\Runtime\PhysicsCore\Public\PhysicalMaterials\PhysicalMaterial.h(61): error C2143: syntax error: missing ';' before '<class-head>'
11>C:\Program Files\Epic Games\UE_5.3\Engine\Source\Runtime\PhysicsCore\Public\PhysicalMaterials\PhysicalMaterial.h(61): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
11>C:\Program Files\Epic Games\UE_5.3\Engine\Source\Runtime\PhysicsCore\Public\PhysicalMaterials\PhysicalMaterial.h(63): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
despite the fact that my new property is on lines 72/73.
Also when I then remove my new code the system refuses to rebuild succesfully.