How to get object sub-type from "Get Value as Object" Blackboard node?

Hi,

I was wondering if there is a way to get an object’s sub-type from the “Get Value as Object” Blackboard node? I am trying to do this to avoid using Casts, where possible.

I am trying to get a reference to an instance of my “Player Ship Pawn,” which is stored as a Blackboard Key Value when the AI Controller is initialized. In the details panel of my Blackboard, I have made sure to set the Base class of the Blackboard Key Object to “Player Ship Pawn.”

However, when I try to call any nodes that require a “Player Ship Pawn” as input, I cannot use the return value from the “Get Value as Object” node. Is there a way I can achieve this without performing a Cast?

Please see screenshots for reference.

Unable to get Player Ship Pawn out of return value of Get Value as Object:

Initialized within the AI Controller:

Blackboard Details:

Hi! I am rather sure that there is no way to do that. GetValueAsObject and SetValueAsObject do only the thing that they are called for - store only reference of UObject. When you have reference it can be easily be sublcassA or subclassB. You can try to use NodeMemory…

Ok, I think you are right. Thank you for the info!