How do you get a reference to a material in c++ outside of the constructor?
I tried ConstructorHelpers::FObjectFinder(PathToSolidMaterial).Object but it doesn’t work outside of a constructor.
From Asset Registry which also allows you to get entire set of assets if you want
There also other methods as descibed here:
Bu in constructors use constructor helper as it id design to work even if engine is not fully initiated and work with defaults
1 Like