Hello,Every body
BP_BaseAI is Parentclass.
BP_AI is Subclass.
In Scenes have two BP_AI.
How can I get BP_AI2 Pawn for cast to BP_BaseAI
I need get inside variable show on player UI for DEBUG
thaks
Hello,Every body
BP_BaseAI is Parentclass.
BP_AI is Subclass.
In Scenes have two BP_AI.
How can I get BP_AI2 Pawn for cast to BP_BaseAI
I need get inside variable show on player UI for DEBUG
thaks
I’m a little new to this but I think the Inherited class should have all the variables the parent class has. It doesn’t?
i dont think they are referring to a child. in the picture they are showing the world outliner which leads me to believe they are trying to reference a second instance of the same class. if thats the case then you need to use something like a trace, a public variable, or another means via blueprint to get your reference. its usually a pretty simple thing to do but is very dependent on your current implementation.
give us more information to work with and we can give you a better answer. provide things like where your widget is created and what the script your making is attempting to accomplish. does the reference need to change over time or is it set prior to runtime or at runtime.
In WidgetBlueprint,Event tick get BP_BaseAI variable ''state".
Before,Show Player’s variable On Player UI Is OK,Use ‘get player pawn’
Now,I try creat variable’Pawn’,but can’t use straw get BP_AI2.
BP_BaseAI is BP_AI’s Parentclass
BP_AI2 is BP_AI’s Instance In world outliner
If can get Pawn == ‘BP_AI2’,Can finish it