[ BUG? ] - Soft Pointer to Data Asset causes Access violation?

Anti-Wisdom
Wed, 01 Feb 2023 14:03:14 +0000
C++

I made an instance of a Data Asset in my content browser and would like c++ to access data from it by referencing this data asset in custom project settings. (using a property with Config specifier)

Unfortunately, using UObject* in config is not allowed.
So I’ve tried another method:

This allows me to configure the appropriate data asset from my content browser:

. . .but will cause an Access violation reading location if the variable is even accessed (even if no methods of it are used)

I’m undoubtedly missing something obvious, but I cannot figure out what is causing this error, it errors out on nothing more than assigning this value to a different field, which seems to work fine with any other data type.

[Edit]
I’ve now also tried this using TSoftObjectPtr which resulted in the exact same issue. ‘Access violation reading location’,
Hovering the fields in Visual Studio shows they are not null and contain the data they’re supposed to.
Is this a bug?

2 posts - 2 participants