I was trying to access a class ‘A’ public variable { FString Semantic} from class ‘A’ public method { Logger(FString) }. And I’m calling this class ‘A’ method ‘Logger(FString)’ from another class ‘B’ in another cpp file.
I’ve included ‘class A.h’ in ‘class B.h’. I was able to call the function and pass ‘FString’ as parameter. The problem is once the execution is inside class ‘A’ method I’m able to print this FString through UELog but I’m not able to assign it to class ‘A’ public variable ‘Semantic’ —
Am I doing any wrong in here? Please help me on this.
Note: Here class A is AInfo derived class and class B is AActor derived class.
Hey @Malineni, Welcome to the forums!
I’ve seen this issue a bit on the forums and others, and it seems like this is either a GPU problem or a script issue. I would recommend either resetting your graphics settings to default or trying to create a new script that does what you’re trying to accomplish. Are your functions static?
No, functions are not static. GPU settings are set to default and I tried executing it in multiple systems, but issue stays same. I doubt a script error but can’t able to figure it out.