How to access protected variables from UE4 class

Hi all,

Does anyone knows how to access protected variables from UE4 class?

ex:
class USoundWave

protected:
    /** Cached sample rate for displaying in the tools */
    UPROPERTY(Category = Info, AssetRegistrySearchable, VisibleAnywhere)
    int32 SampleRate;

I want to access SampleRate and I declare a class inherits from USoundWave.

But still can’t access.

Make sure this is selected

And look inside your specified category “Info”

Hi KazemAkhgary,

Thanks for your suggestion.

I want to access the protected variables by c++ programming.

After I declare a class inherits from USoundWave, it can’t find SampleRate.

.h

class UMyWave : public USoundWave{}

.cpp

UMyWave Object;
Object->SampleRate