How to use GetGameTimeInSeconds?
I am trying to call UKismetSystemLibrary::GetGameTimeInSeconds(this) in a function of a class that inherits from AActor, but I get the C2355 error below.
error C2355: 'this' : can only be referenced inside non-static member functions or non-static data member initializers
How can I pass the UObject* WorldContextObject to the function without using 'this'?
asked Jan 07 '15 at 01:48 AM in C++ Programming
UKismetSystemLibrary::GetGameTimeInSeconds(this) It is only for blueprint.
Try to use this
Hope it helps! Gleb
answered Jan 08 '15 at 02:37 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here