FObjectFinder.object is null on Tick
I have the following code:
I am trying to load material from the assets and change some parameters. On the constructor, material is not null and if I ser paramater value there it works. but on Tick function material is null and it leads to run time error. I understand why this is happaning. material is a UMaterialInstanceDynamic pointer and when FObjectFinder.object dies, materials dies too. but why does it goes null? it is static.
I also have tried to change the contructor for the following:
But chainging the paramater is not working. Even if I change it from the constructor. How can I get this work?
asked Mar 31 '15 at 06:24 PM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here